aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r--src/im-sandbox.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 45a058ba..6970a14f 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -476,10 +476,10 @@ static void run_work(const struct index_args *iargs,
ERROR("write P0\n");
}
- free_filename_plus_event(pargs.filename_p_e);
-
}
+ free_filename_plus_event(pargs.filename_p_e);
+
}
free(bd.line);
@@ -780,7 +780,7 @@ static void start_worker_process(struct sandbox *sb, int slot)
free(sb->filename_pipes);
free(sb->result_fhs);
free(sb->pids);
- /* Also prefix, use_this_one_instead and fh */
+ /* Also prefix, tempdir, */
/* Child process gets the 'read' end of the filename
* pipe, and the 'write' end of the result pipe. */
@@ -795,6 +795,8 @@ static void start_worker_process(struct sandbox *sb, int slot)
//close(filename_pipe[0]);
close(result_pipe[1]);
+ free(sb);
+
exit(0);
}