]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix memory leak in launcher-linux.c
authorMark Wielaard <mark@klomp.org>
Sat, 25 May 2019 14:31:02 +0000 (16:31 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 25 May 2019 14:31:02 +0000 (16:31 +0200)
commitf15beea767892ae52ed1d92d789114685fb5dc82
tree6a0c5ee665fff62a33ab00244c72231993c44eef
parentf7f48f91b046751def38326f8a8547bb8c98d4f2
Fix memory leak in launcher-linux.c

When the clientname argument is not a full absolute path we reconstruct
the full path using $PATH. This reconstructed full path would be leaked.
This is small and insignificant. But valgrind should give a good example.
So free the path again when we are done and allocated the memory.
Also don't print the path twice in the debug output if we didn't need to
construct a new different path for it.
coregrind/launcher-linux.c