1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00

Fix memory leak.

PR:		kern/90113
Submitted by:	Antoine Brodin
This commit is contained in:
Ruslan Ermilov 2005-12-09 07:09:44 +00:00
parent f99d3b7b53
commit 1fb27d4388
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153261

View File

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