aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-08-26 17:40:26 +0200
committerThomas White <taw@physics.org>2024-08-26 17:46:43 +0200
commit1a8f2ad1083838aa9dc0ddbb6cedf0f2ff0826fe (patch)
treeecbedecea20eca7c5cf9327b4b3a205dfb16839c
parent13fbeb155cbc8ab0eabb498649242900933f56b7 (diff)
indexmajig: Free some stuff (in main process)
This slightly reduces spam in Valgrind output.
-rw-r--r--src/im-sandbox.c2
-rw-r--r--src/indexamajig.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 4fcf8c4e..fac01999 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -560,6 +560,7 @@ static int run_work(const struct index_args *iargs, Stream *st,
im_zmq_shutdown(zmqstuff);
im_asapo_shutdown(asapostuff);
+ data_template_free(iargs->dtempl);
cleanup_indexing(iargs->ipriv);
cell_free(iargs->cell);
return 0;
@@ -1430,6 +1431,7 @@ int create_sandbox(struct index_args *iargs, int n_proc, char *prefix,
}
sem_unlink(semname_q);
+ sem_close(sb->queue_sem);
for ( i=0; i<sb->n_read; i++ ) {
fclose(sb->fhs[i]);
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 00b15b55..29e60d88 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -1514,6 +1514,7 @@ int main(int argc, char *argv[])
if ( pf8_data != NULL ) free_pf8_private_data(pf8_data);
cell_free(args.iargs.cell);
+ free(args.iargs.milledir);
free(args.prefix);
free(args.temp_location);
free(tmpdir);