diff options
author | glebius <glebius@FreeBSD.org> | 2005-08-29 13:47:08 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-08-29 13:47:08 +0000 |
commit | e8b11bb2ef203a9c1e215689e011a8f46a73a331 (patch) | |
tree | 7ea0c5ff18f815326eb2ff26e056bb8488692994 /sys | |
parent | aa258f8f8554a90d49c4cdfb9f4fc26c8117144d (diff) | |
download | FreeBSD-src-e8b11bb2ef203a9c1e215689e011a8f46a73a331.zip FreeBSD-src-e8b11bb2ef203a9c1e215689e011a8f46a73a331.tar.gz |
Plug item leak in case when not all hooks are connected.
Found by: David Vos <david.vos gmail.com>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netgraph/ng_split.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netgraph/ng_split.c b/sys/netgraph/ng_split.c index df85fe5..b7168f4 100644 --- a/sys/netgraph/ng_split.c +++ b/sys/netgraph/ng_split.c @@ -142,6 +142,9 @@ ng_split_rcvdata(hook_p hook, item_p item) NG_FWD_ITEM_HOOK(error, item, priv->out); } + if (item) + NG_FREE_ITEM(item); + return (error); } |