Fix memory leak.
PR: kern/90113 Submitted by: Antoine Brodin
This commit is contained in:
parent
f99d3b7b53
commit
1fb27d4388
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153261
@ -219,6 +219,7 @@ static int
|
||||
ngh_disconnect(hook_p hook)
|
||||
{
|
||||
|
||||
FREE(NG_HOOK_PRIVATE(hook), M_NETGRAPH);
|
||||
NG_HOOK_SET_PRIVATE(hook, NULL);
|
||||
if (NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
|
||||
ng_rmnode_self(NG_HOOK_NODE(hook));
|
||||
|
Loading…
Reference in New Issue
Block a user