summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-01-10 23:49:03 +0000
committerjulian <julian@FreeBSD.org>2001-01-10 23:49:03 +0000
commit0012f9ab760ab2d7012401c634101b70d9df88ba (patch)
tree4f913c1aa673867b57ab4997cd0dd1d15a6e59aa /sys/netgraph
parentd3ebfde307b031552420e3b5d5f071374a9bbda1 (diff)
downloadFreeBSD-src-0012f9ab760ab2d7012401c634101b70d9df88ba.zip
FreeBSD-src-0012f9ab760ab2d7012401c634101b70d9df88ba.tar.gz
Only free items that are not already free or passed to other nodes.
Clever work by: Brian Sommers (Brian@freeBSD.org)
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_pppoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 05aa5ae..0c93f85 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;
}
OpenPOWER on IntegriCloud