Free mtags for dummynet mbuf.
[ipfw.git] / dummynet / ipfw2_mod.c
index ff5a92f..0da1904 100644 (file)
@@ -348,7 +348,7 @@ ipfw2_queue_handler(QH_ARGS)
 
        if (m != NULL) {        /* Accept. reinject and free the mbuf */
                REINJECT(info, NF_STOP);
-               free(m, M_IPFW);
+               m_freem(m);
        } else if (ret == 0) {
                /* dummynet has kept the packet, will reinject later. */
        } else {
@@ -377,7 +377,7 @@ netisr_dispatch(int num, struct mbuf *m)
        struct nf_queue_entry *info = m->queue_entry;
        struct sk_buff *skb = m->m_skb; /* always used */
 
-       free(m, M_IPFW);
+       m_freem(m);
        KASSERT((info != NULL), ("%s info null!\n", __FUNCTION__));
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)       // XXX above 2.6.x ?
        __net_timestamp(skb);   /* update timestamp */