Fix a memory leak on the error condition
Reviewed by: rpaulo
This commit is contained in:
parent
de3f3adcdf
commit
403693dde8
@ -84,7 +84,7 @@ proc_attach(pid_t pid, int flags, struct proc_handle **pphdl)
|
||||
else
|
||||
*pphdl = phdl;
|
||||
out:
|
||||
|
||||
proc_free(phdl);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user