summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2012-08-06 10:50:43 +0000
committerluigi <luigi@FreeBSD.org>2012-08-06 10:50:43 +0000
commitb53e8390d6aa61e8b65635cd0606a93b948b7255 (patch)
tree6e0cf00bf385d77cf2830299c5b836aefb50cea6 /sys/netinet
parentaf3a9a01e1b85807a01689273c24f63ed121134a (diff)
downloadFreeBSD-src-b53e8390d6aa61e8b65635cd0606a93b948b7255.zip
FreeBSD-src-b53e8390d6aa61e8b65635cd0606a93b948b7255.tar.gz
use FREE_PKT instead of m_freem to free an mbuf.
The former is the standard form used in ipfw/dummynet, so that it is easier to remap it to different memory managers depending on the platform.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ipfw/ip_fw_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ipfw/ip_fw_log.c b/sys/netinet/ipfw/ip_fw_log.c
index 95b8a25..4007125 100644
--- a/sys/netinet/ipfw/ip_fw_log.c
+++ b/sys/netinet/ipfw/ip_fw_log.c
@@ -115,7 +115,7 @@ ipfw_log_output(struct ifnet *ifp, struct mbuf *m,
struct sockaddr *dst, struct route *ro)
{
if (m != NULL)
- m_freem(m);
+ FREE_PKT(m);
return EINVAL;
}
OpenPOWER on IntegriCloud