summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-03-10 19:34:20 +0000
committerglebius <glebius@FreeBSD.org>2005-03-10 19:34:20 +0000
commitf20ed001c65fc370318c50fb9c838f72a39672ad (patch)
tree33da4fa0749fb089b6cd56d6e5805e09ec1c962e /sys/netgraph/netgraph.h
parentf7860c8cb88d267c9d25b11f78b80dff6f2ee493 (diff)
downloadFreeBSD-src-f20ed001c65fc370318c50fb9c838f72a39672ad.zip
FreeBSD-src-f20ed001c65fc370318c50fb9c838f72a39672ad.tar.gz
Plug item leak in macro NG_RESPOND_MSG. Item was leaked when destination
node couldn't be addressed. Submitted by: Roselyn Lee
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 4cf32b7..415b5d4 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -948,6 +948,7 @@ _ngi_hook(item_p item, char *file, int line)
SAVE_LINE(item); \
(error) = ng_snd_item((item), 1); \
} else { \
+ NG_FREE_ITEM(item); \
(error) = EINVAL; \
} \
} else { \
OpenPOWER on IntegriCloud