diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-04-13 22:42:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-04-13 22:42:19 +0000 |
commit | b4392dad37b73b8493b248e44e61a4d6a658a863 (patch) | |
tree | eb927c4169581aa8eaf6665cef45b00405685341 /capture_sync.c | |
parent | 3fc6c21130c5a0f40c1bd2220bfcd54c714679c3 (diff) |
From Evan Huus: fix memory leak. Fixes bug 7081.
svn path=/trunk/; revision=42057
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c index 386452c839..366a566f82 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -313,6 +313,9 @@ init_pipe_args(int *argc) { /* Make that the first argument in the argument list (argv[0]). */ argv = sync_pipe_add_arg(argv, argc, exename); + /* sync_pipe_add_arg strdupes exename, so we should free our copy */ + g_free(exename); + return argv; } |