1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 12:54:35 +02:00

eeshow/sch-parse.c (free_sheet): don't free recursively (caller frees all)

This commit is contained in:
Werner Almesberger 2016-08-08 17:22:44 -03:00
parent cd0ee8932d
commit 13828eff94

View File

@ -615,7 +615,10 @@ static void free_sheet(struct sheet *sch)
case sch_obj_sheet:
free((char *) obj->u.sheet.name);
free((char *) obj->u.sheet.file);
free_sheet((struct sheet *) obj->u.sheet.sheet);
/*
* Caller frees all sheets, including this sub-sheet
* (obj->u.sheet.sheet), so we don't do this here.
*/
free_sheet_fields(obj->u.sheet.fields);
break;
default: