Free private data when deleting hook.

  PR:		kern/93952
  Submitted by:	Antoine Brodin <antoine.brodin laposte.net>

Approved by:	re (mux)
This commit is contained in:
glebius 2006-03-18 22:00:37 +00:00
parent 64f07cddfc
commit fc9f312630

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