DragonFlyBSD Kernel Audit
DF-0698 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/netgraph7/etf/ng_etf.c b/sys/netgraph7/etf/ng_etf.c
--- a/sys/netgraph7/etf/ng_etf.c
+++ b/sys/netgraph7/etf/ng_etf.c
@@ -464,6 +464,7 @@
 			fil2 = LIST_NEXT(fil1, next);
 			if (fil1->match_hook == hook) {
 				LIST_REMOVE(fil1, next);
+			kfree(fil1, M_NETGRAPH_ETF);
 				kfree(fil1, M_NETGRAPH_ETF);
 			}
 			fil1 = fil2;