From 1a37de5cce5c2df83e37fb189409659299594b1b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 22 Oct 2014 17:50:37 +0200 Subject: Fix a load of memory leaks --- src/im-sandbox.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/im-sandbox.c') 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); } -- cgit v1.2.3