diff options
author | NIIBE Yutaka <[email protected]> | 2024-09-19 06:40:32 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-09-19 06:40:32 +0000 |
commit | 4a0c942151da91ad75dbb45d4dc10c4751ee28e4 (patch) | |
tree | 01286f40855095905ab4bb2ae3f78d047cef0635 /src/spawn-posix.c | |
parent | w32:spawn: Remove unused function get_max_fds. (diff) | |
download | libgpg-error-4a0c942151da91ad75dbb45d4dc10c4751ee28e4.tar.gz libgpg-error-4a0c942151da91ad75dbb45d4dc10c4751ee28e4.zip |
posix: Fix memory leak for spawn.
* src/spawn-posix.c (spawn_detached): Free ARGV.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/spawn-posix.c')
-rw-r--r-- | src/spawn-posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/spawn-posix.c b/src/spawn-posix.c index 96f1536..609c157 100644 --- a/src/spawn-posix.c +++ b/src/spawn-posix.c @@ -403,6 +403,7 @@ spawn_detached (const char *pgmname, const char *argv[], /*NOTREACHED*/ } + xfree (argv); _gpgrt_pre_syscall (); if (waitpid (pid, NULL, 0) == -1) { |