aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/index.c3
-rw-r--r--src/im-sandbox.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 06d57e52..f72334c4 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -349,8 +349,9 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell,
free(methods);
return NULL;
}
-
+ free(method_strings[i]);
}
+ free(method_strings);
/* No cell parameters -> no cell checking, no prior cell */
if ( !cell_has_parameters(cell) ) {
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 0f57fd0c..b73e4707 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -912,6 +912,9 @@ static void delete_temporary_folder(const char *tmpdir, int n_proc)
if ( rmdir(tmpdir) ) {
ERROR("Failed to delete temporary folder: %s\n", strerror(errno));
}
+
+ free(workerdir);
+ free(path);
}