From f706d2f60f2ce94127a6b2cfa56e96f861606dab Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 18 Mar 2014 22:07:48 +0100 Subject: partial_sim: Fix memory leaks --- src/partial_sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3