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

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