aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-10-22 17:50:37 +0200
committerThomas White <taw@physics.org>2014-10-23 17:02:32 +0200
commit1a37de5cce5c2df83e37fb189409659299594b1b (patch)
treedeb3e7c3b8b661c07aa2a4a4a663c97081d63b05 /src/im-sandbox.c
parent8bdd03533aefabfe13259eb6e9b585420b4ed984 (diff)
Fix a load of memory leaks
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);
}