mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 13:16:21 +02:00
eeshow/sch-parse.c (free_sheet): don't free recursively (caller frees all)
This commit is contained in:
parent
cd0ee8932d
commit
13828eff94
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user