aboutsummaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2002-04-04 06:00:21 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2002-04-04 06:00:21 +0000
commit2dfe3200368e7c0f87249c4408d374615c13e9a9 (patch)
tree0b7a89f97011424e3a79dff7264c406eb76f8dad /sys/net
parent7d3e4c6e71644d51cb644ccef9d65bbf0bfc5c96 (diff)
Notes
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_arcsubr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c
index a4fbec2e4ddb..006ea92040d5 100644
--- a/sys/net/if_arcsubr.c
+++ b/sys/net/if_arcsubr.c
@@ -296,16 +296,15 @@ arc_frag_next(ifp)
/* we CAN'T have short packets here */
ac->curr_frag = m_split(m, 504, M_DONTWAIT);
if (ac->curr_frag == 0) {
- m_free(m);
+ m_freem(m);
return 0;
}
M_PREPEND(m, ARC_HDRNEWLEN, M_DONTWAIT);
if (m == 0) {
- m_free(ac->curr_frag);
+ m_freem(ac->curr_frag);
ac->curr_frag = 0;
- m_free(m);
return 0;
}