summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-03-15 15:41:36 +0000
committerglebius <glebius@FreeBSD.org>2006-03-15 15:41:36 +0000
commit2a445560a58f8ed7f8e0669717058b60826892ec (patch)
treeeebc10d1b3b19f95855fc5f67403f96cf4ecd338 /sys/netgraph
parent2ecb5d65a2dde48c272dab2405539f323a9fc4ea (diff)
downloadFreeBSD-src-2a445560a58f8ed7f8e0669717058b60826892ec.zip
FreeBSD-src-2a445560a58f8ed7f8e0669717058b60826892ec.tar.gz
Free private data when deleting hook.
PR: kern/93952 Submitted by: Antoine Brodin <antoine.brodin laposte.net>
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_tcpmss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netgraph/ng_tcpmss.c b/sys/netgraph/ng_tcpmss.c
index 760dad3..88bcafa 100644
--- a/sys/netgraph/ng_tcpmss.c
+++ b/sys/netgraph/ng_tcpmss.c
@@ -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));
OpenPOWER on IntegriCloud