1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Free private data when deleting hook.

PR:		kern/93952
Submitted by:	Antoine Brodin <antoine.brodin laposte.net>
This commit is contained in:
Gleb Smirnoff 2006-03-15 15:41:36 +00:00
parent 91545fccf9
commit df7e759cc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156742

View File

@ -368,6 +368,8 @@ ng_tcpmss_disconnect(hook_p hook)
priv->outHook = NULL;
}
FREE(NG_HOOK_PRIVATE(hook), M_NETGRAPH);
if (NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0)
ng_rmnode_self(NG_HOOK_NODE(hook));