summaryrefslogtreecommitdiff
path: root/kicad/sch-render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 15:14:23 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 15:16:55 -0300
commitfefaf1bd733e241242e1f75ba04d932f17951354 (patch)
treea88cf0fb5de37b3ea0e3732a11d63a891dcbc1db /kicad/sch-render.c
parent35f2c9c26e6d7975e4c29eaa79dd10e29f24dea4 (diff)
downloadeeshow-fefaf1bd733e241242e1f75ba04d932f17951354.tar.gz
eeshow-fefaf1bd733e241242e1f75ba04d932f17951354.tar.bz2
eeshow-fefaf1bd733e241242e1f75ba04d932f17951354.zip
fix a few memory leaks (in non-interactive mode)
We now leak less than 1 MB on valgrind --leak-check=full eeshow -N 1 neo900.pro -- png -o foo.png instead of about 3.5 MB. The plan is as follows: - fix memory leaks in simple operations in on-interactive mode, - suppress what cannot be fixed (e.g., when comes from libraries), - move on to more complex operations, - then start fixing interactive mode.
Diffstat (limited to 'kicad/sch-render.c')
-rw-r--r--kicad/sch-render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 52be40f..27b5ecb 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -111,8 +111,8 @@ static void do_hsheet_text(const struct sch_obj *obj,
text_show(&sheet_txt, gfx, COLOR_HSHEET_SHEET, LAYER_HSHEET_FIELD);
text_show(&file_txt, gfx, COLOR_HSHEET_FILE, LAYER_HSHEET_FIELD);
-// free((void *) ctx->sheet);
-// free((void *) ctx->file);
+ free((void *) sheet_txt.s);
+ free((void *) file_txt.s);
}