Fix a memory leak on the error condition

Reviewed by:	rpaulo
This commit is contained in:
Kevin Lo 2010-12-14 15:14:08 +00:00
parent 9998d4b63f
commit faeece5e24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216432

View File

@ -84,7 +84,7 @@ proc_attach(pid_t pid, int flags, struct proc_handle **pphdl)
else
*pphdl = phdl;
out:
proc_free(phdl);
return (error);
}