aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-04-20 11:43:02 +0200
committerThomas White <taw@physics.org>2021-04-20 11:43:02 +0200
commitefe5797f2cad7d0beb8e55531133c26153b40a7a (patch)
treec0b13eb5a87d9599f6e3fd65794617c9a80f2bc2 /src
parentbfbdeb24ab92b9a3171bc0581bccdfcd06d7aebc (diff)
Fix memory handling semantics for ZMQ data
Diffstat (limited to 'src')
-rw-r--r--src/im-sandbox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index eb0b942f..22e2c05f 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -444,7 +444,9 @@ static int run_work(const struct index_args *iargs, Stream *st,
process_image(iargs, &pargs, st, cookie, tmpdir, ser,
sb->shared, taccs, sb->shared->last_task[cookie]);
- free(pargs.zmq_data);
+ /* pargs.zmq_data will be copied into the image structure, so
+ * that it can be queried for "header" values etc. It will
+ * eventually be freed by image_free() under process_image() */
}
im_zmq_shutdown(zmqstuff);