diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-03-18 22:07:48 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-03-18 22:07:48 +0100 |
commit | f706d2f60f2ce94127a6b2cfa56e96f861606dab (patch) | |
tree | fd2266dee39b8f2b1ef549bd901b722d36630644 | |
parent | 0ecc2f603849188f1ddc22b94487c60b713c379c (diff) |
partial_sim: Fix memory leaks
-rw-r--r-- | src/partial_sim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 559d62cf..e35c7ef2 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -398,8 +398,8 @@ static void finalise_job(void *vqargs, void *vwargs) qargs->n_done++; progress_bar(qargs->n_done, qargs->n_to_do, "Simulating"); + free_all_crystals(&wargs->image); free(wargs->image.filename); - crystal_free(wargs->crystal); free(wargs); } @@ -810,6 +810,7 @@ int main(int argc, char *argv[]) free(beam); free_symoplist(sym); reflist_free(full); + free(save_file); return 0; } |