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

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