]> granicus.if.org Git - psmisc/commit
Avoid possible crash and memory leak in killall
authorWerner Fink <werner@suse.de>
Sat, 14 Mar 2015 21:39:12 +0000 (08:39 +1100)
committerCraig Small <csmall@enc.com.au>
Sat, 14 Mar 2015 21:39:12 +0000 (08:39 +1100)
commit05a66f193ccf3878f204f79845ff90672fb640ec
tree1d033b2b4c4045d5e7fac0963660f7d14a36d95c
parent26af843b03d3b9288bc4da04539ceda4b35d7ce2
Avoid possible crash and memory leak in killall

By reading the current HEAD I stumbled on a memory leak in killall.c
as well as a not assigned pointer got_long in load_proc_cmdline()
which may lead to SIGSEGV.

References: [patches:#67] https://sourceforge.net/p/psmisc/bugs/67
Signed-off-by: Werner Fink <werner@suse.de>
src/killall.c