From Evan Huus: fix memory leak. Fixes bug 7081.

svn path=/trunk/; revision=42057
This commit is contained in:
Guy Harris 2012-04-13 22:42:19 +00:00
parent 3fc6c21130
commit b4392dad37
2 changed files with 4 additions and 0 deletions

View File

@ -3617,6 +3617,7 @@ Andras Veres-Szentkiralyi <vsza [AT] vsza.hu>
Jakob Hirsch <jh.wireshark-bugzilla [AT] plonk.de>
Роман Донченко <DXDragon [AT] yandex.ru>
<billyjeans [AT] gmail.com>
Evan Huus <eapache [AT] gmail.com>
Dan Lasley <dlasley[AT]promus.com> gave permission for his
dumpit() hex-dump routine to be used.

View File

@ -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;
}