aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-27 11:49:49 +0200
committerThomas White <taw@physics.org>2022-06-02 12:15:38 +0200
commit817304e411d69426ffdd263ec6cc6fee35c48e22 (patch)
treee40b6a0d4fb0949f3db4f0d73b75a8faf3f230d6
parent8735bc06caf9ab07b13108f80763a6ff164f0db6 (diff)
ASAP::O: Fix memory leak on error path
-rw-r--r--src/im-sandbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 759c5442..b646441b 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -1143,6 +1143,7 @@ int create_sandbox(struct index_args *iargs, int n_proc, char *prefix,
if ( sb->zmq && sb->asapo ) {
ERROR("Cannot simultaneously use ZMQ and ASAP::O input.\n");
+ free(sb);
return 0;
}