From 034e21eba3d60426764ff383a90f468dbb830081 Mon Sep 17 00:00:00 2001 From: bert Date: Fri, 27 Feb 2015 21:42:57 +0100 Subject: [PATCH 1/1] action.c: clean up before return. Signed-off-by: bert --- src/action.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/action.c b/src/action.c index 768d185..9328ad7 100644 --- a/src/action.c +++ b/src/action.c @@ -3590,6 +3590,8 @@ ActionRenumber (int argc, char **argv, Coord x, Coord y) free (locked_element_list); free (element_list); free (cnt_list); + free (is); + free (was); return 0; } @@ -7829,6 +7831,7 @@ ActionImport (int argc, char **argv, Coord x, Coord y) tmpfile = tempfile_name_new ("gnetlist_output"); if (tmpfile == NULL) { Message (_("Could not create temp file")); + free (sources); return 1; } must_free_tmpfile = 1; -- 1.7.3.4