⬢ DragonFlyBSD Kernel Audit
DF-3408 / fix.diff
← back to finding ↓ download raw
--- a/sys/net/tun/if_tun.c
+++ b/sys/net/tun/if_tun.c
@@ -883,6 +883,7 @@
 	if (error) {
 		if (top)
 			m_freem(top);
+		m_freem(m);	/* spare MGET from the last iteration */
 		IFNET_STAT_INC(ifp, ierrors, 1);
 		return (error);
 	}