summaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_sample.c')
-rw-r--r--sys/netgraph/ng_sample.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c
index 5c98b830b9f0..8616dd6f5ce2 100644
--- a/sys/netgraph/ng_sample.c
+++ b/sys/netgraph/ng_sample.c
@@ -377,9 +377,10 @@ ng_xxx_rcvdata(hook_p hook, item_p item )
}
} else {
/* It's the debug hook, throw it away.. */
- if (hook == xxxp->downstream_hook.hook)
+ if (hook == xxxp->downstream_hook.hook) {
NG_FREE_ITEM(item);
NG_FREE_M(m);
+ }
}
return 0;
}