]> git.ipfire.org Git - thirdparty/gcc.git/commit
libiberty: fix memory leak in pex-win32.c and refactor
authorCostas Argyris <costas.argyris@gmail.com>
Sun, 26 Feb 2023 16:34:11 +0000 (16:34 +0000)
committerJonathan Yong <10walls@gmail.com>
Fri, 3 Mar 2023 10:45:43 +0000 (10:45 +0000)
commit59bc2b68de8041adf5eeb5bd18e5921f8a1f9567
treeb6eebf6d0b7ffd96b5a759bb3b4752506606c476
parentdbeccab7a1f5dcc1876c854f17816047ba1ef137
libiberty: fix memory leak in pex-win32.c and refactor

Fix memory leak of cmdline buffer and refactor to have
cleanup code appear once for all exit cases.

libiberty/ChangeLog:

* pex-win32.c (win32_spawn): Fix memory leak of cmdline
buffer and refactor to have cleanup code appear once
for all exit cases.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
libiberty/pex-win32.c