properly free mbuf space
[unix-history] / usr / src / sys / netinet / ip_icmp.c
index d5a0b3f..8cf82fd 100644 (file)
@@ -1,4 +1,4 @@
-/*     ip_icmp.c       4.12    82/01/19        */
+/*     ip_icmp.c       4.13    82/04/07        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -63,12 +63,11 @@ COUNT(ICMP_ERROR);
        nip = (struct ip *)mtod(m, struct ip *);
        *nip = *oip;
        icmp_reflect(nip);
        nip = (struct ip *)mtod(m, struct ip *);
        *nip = *oip;
        icmp_reflect(nip);
-       return;
 
 
+free:
        /*
         * Discard mbufs of original datagram
         */
        /*
         * Discard mbufs of original datagram
         */
-free:
        m_freem(dtom(oip));
 }
 
        m_freem(dtom(oip));
 }