From 5b6749b20e1fe14f994df0eb3a8096d69a72326a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 12 Aug 2014 13:42:36 +0200 Subject: partial_sim: Fix free(geomfile) --- src/partial_sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/partial_sim.c b/src/partial_sim.c index a113532b..ebff2e20 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -646,7 +646,6 @@ int main(int argc, char *argv[]) ERROR("Failed to read geometry from '%s'\n", geomfile); return 1; } - free(geomfile); if ( sym_str == NULL ) sym_str = strdup("1"); sym = get_pointgroup(sym_str); @@ -845,6 +844,7 @@ int main(int argc, char *argv[]) free_symoplist(sym); reflist_free(full); free(save_file); + free(geomfile); return 0; } -- cgit v1.2.3