diff options
author | glebius <glebius@FreeBSD.org> | 2005-03-10 19:34:20 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-03-10 19:34:20 +0000 |
commit | f20ed001c65fc370318c50fb9c838f72a39672ad (patch) | |
tree | 33da4fa0749fb089b6cd56d6e5805e09ec1c962e /sys/netgraph/netgraph.h | |
parent | f7860c8cb88d267c9d25b11f78b80dff6f2ee493 (diff) | |
download | FreeBSD-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.h | 1 |
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 { \ |