diff options
author | ru <ru@FreeBSD.org> | 2005-12-09 07:09:44 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-12-09 07:09:44 +0000 |
commit | 45c0ed5e8ad9773034aca606883e29c2e2212ba9 (patch) | |
tree | 329677b64b76a5b04072147b0c3c53bcb1938cbb /sys/netgraph | |
parent | 808f83c06face0880500e7db5ea24699f54a8eb4 (diff) | |
download | FreeBSD-src-45c0ed5e8ad9773034aca606883e29c2e2212ba9.zip FreeBSD-src-45c0ed5e8ad9773034aca606883e29c2e2212ba9.tar.gz |
Fix memory leak.
PR: kern/90113
Submitted by: Antoine Brodin
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_hole.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_hole.c b/sys/netgraph/ng_hole.c index 75832f4..f3b8f8c 100644 --- a/sys/netgraph/ng_hole.c +++ b/sys/netgraph/ng_hole.c @@ -219,6 +219,7 @@ static int ngh_disconnect(hook_p hook) { + FREE(NG_HOOK_PRIVATE(hook), M_NETGRAPH); NG_HOOK_SET_PRIVATE(hook, NULL); if (NG_NODE_NUMHOOKS(NG_HOOK_NODE(hook)) == 0) ng_rmnode_self(NG_HOOK_NODE(hook)); |