Plug memory leaks that is observed when argbuf or argspc is used in the
context. Submitted by: Michal Vranek <michal.vranek seznam cz> PR: bin/118380 MFC after: 1 month
This commit is contained in:
parent
5abb148f43
commit
8b8ffe64e9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175243
@ -290,6 +290,10 @@ kvm_close(kd)
|
||||
_kvm_freevtop(kd);
|
||||
if (kd->procbase != 0)
|
||||
free((void *)kd->procbase);
|
||||
if (kd->argbuf != 0)
|
||||
free((void *) kd->argbuf);
|
||||
if (kd->argspc != 0)
|
||||
free((void *) kd->argspc);
|
||||
if (kd->argv != 0)
|
||||
free((void *)kd->argv);
|
||||
free((void *)kd);
|
||||
|
Loading…
Reference in New Issue
Block a user