1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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:
Xin LI 2008-01-12 00:54:47 +00:00
parent 5abb148f43
commit 8b8ffe64e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175243

View File

@ -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);