summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-02 09:54:16 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-02 09:54:16 (GMT)
commit7b41ab8c0533457254454c903e4c67b96891ea0d (patch)
treed8cc7d6d6deccd8087731c710e208e0bc9d4c585 /kicad
parent2203a4e80d330e381bc3dd0c32fa9c42cf3b4db4 (diff)
downloadeeshow-7b41ab8c0533457254454c903e4c67b96891ea0d.zip
eeshow-7b41ab8c0533457254454c903e4c67b96891ea0d.tar.gz
eeshow-7b41ab8c0533457254454c903e4c67b96891ea0d.tar.bz2
kicad/sch-parse.c (free_sheet): don't forget to free file name, sheet path
Diffstat (limited to 'kicad')
-rw-r--r--kicad/sch-parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kicad/sch-parse.c b/kicad/sch-parse.c
index fc81c62..4f5b26d 100644
--- a/kicad/sch-parse.c
+++ b/kicad/sch-parse.c
@@ -741,6 +741,8 @@ static void free_sheet(struct sheet *sch)
if (!sch)
return;
free((char *) sch->title);
+ free((char *) sch->file);
+ free((char *) sch->path);
free(sch->oid);
for (obj = sch->objs; obj; obj = next) {
next = obj->next;