aboutsummaryrefslogtreecommitdiff
path: root/src/partial_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-08-12 13:42:36 +0200
committerThomas White <taw@physics.org>2014-08-12 13:42:46 +0200
commit5b6749b20e1fe14f994df0eb3a8096d69a72326a (patch)
treed4fac0251f595a1c9e3c584721123e56c5dc84ce /src/partial_sim.c
parenta23db9bba0144007e6373a28c564908d2029ab01 (diff)
partial_sim: Fix free(geomfile)
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r--src/partial_sim.c2
1 files changed, 1 insertions, 1 deletions
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;
}