⬢ DragonFlyBSD Kernel Audit
DF-2574 / fix.diff
← back to finding ↓ download raw
--- a/sys/netgraph/ng_device.c
+++ b/sys/netgraph/ng_device.c
@@ -407,6 +407,7 @@
 	destroy_dev(connection->ngddev);
 
 	SLIST_REMOVE(&sc->head, connection, ngd_connection, links);
+	kfree(connection, M_DEVBUF);
 
 	return(0);
 }