Free mtags for dummynet mbuf.
[ipfw.git] / dummynet / include / sys / mbuf.h
index e4e7591..a7f95a1 100644 (file)
@@ -143,15 +143,16 @@ m_tag_locate(struct mbuf *m, u_int32_t n, int x, struct m_tag *t)
 static __inline void
 m_freem(struct mbuf *m)
 {
-#if 0
        struct m_tag *t;
 
+       /* free the m_tag chain */
        while ( (t = SLIST_FIRST(&m->m_pkthdr.tags) ) ) {
                SLIST_REMOVE_HEAD(&m->m_pkthdr.tags, m_tag_link);
                free(t, 0);
        }
-#endif
-       free(m, 0);
+
+       /* free the mbuf */
+       free(m, M_IPFW);
 };
 
 /* we cannot pullup */