mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
Free private data when deleting hook.
PR: kern/93952 Submitted by: Antoine Brodin <antoine.brodin laposte.net>
This commit is contained in:
parent
91545fccf9
commit
df7e759cc0
1 changed files with 2 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue