summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph')
-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