summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 16:52:36 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 16:52:36 -0300
commit08106aa32ae67c2635f776417b016428f3476bd3 (patch)
tree957469adc8da1b0fb83e109f76d958a8e38c82a5 /main.c
parent427e761a5836abb3696f20673450ff3c6b805c2f (diff)
downloadeeshow-08106aa32ae67c2635f776417b016428f3476bd3.tar.gz
eeshow-08106aa32ae67c2635f776417b016428f3476bd3.tar.bz2
eeshow-08106aa32ae67c2635f776417b016428f3476bd3.zip
fix remaining "direct" leaks in simplest use case
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 0b6dc74..a54bf6c 100644
--- a/main.c
+++ b/main.c
@@ -291,6 +291,8 @@ found:
if (!gfx_multi_sheet(gfx))
one_sheet = 1;
+ free(gfx_argv);
+
sch_init(&sch_ctx, !one_sheet);
if (!file_open(&sch_file, fn->sch, file_names.pro ? &pro_file : NULL))
return 1;
@@ -349,6 +351,8 @@ found:
sch_free(&sch_ctx);
lib_free(&lib);
+ if (pl)
+ pl_free(pl);
return retval;
}