From f585602984a80c07343464427565597f606b15b9 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Wed, 10 Jan 2001 23:49:03 +0000 Subject: [PATCH] Only free items that are not already free or passed to other nodes. Clever work by: Brian Sommers (Brian@freeBSD.org) --- sys/netgraph/ng_pppoe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 05aa5aea1719..0c93f8566eb1 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -1342,7 +1342,8 @@ AAA } } quit: - NG_FREE_ITEM(item); + if (item) + NG_FREE_ITEM(item); NG_FREE_M(m); return error; }