svn commit: r239092 - head/sys/netinet/ipfw
Luigi Rizzo
luigi at FreeBSD.org
Mon Aug 6 10:50:43 UTC 2012
Author: luigi
Date: Mon Aug 6 10:50:43 2012
New Revision: 239092
URL: http://svn.freebsd.org/changeset/base/239092
Log:
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.
Modified:
head/sys/netinet/ipfw/ip_fw_log.c
Modified: head/sys/netinet/ipfw/ip_fw_log.c
==============================================================================
--- head/sys/netinet/ipfw/ip_fw_log.c Mon Aug 6 10:50:23 2012 (r239091)
+++ head/sys/netinet/ipfw/ip_fw_log.c Mon Aug 6 10:50:43 2012 (r239092)
@@ -115,7 +115,7 @@ ipfw_log_output(struct ifnet *ifp, struc
struct sockaddr *dst, struct route *ro)
{
if (m != NULL)
- m_freem(m);
+ FREE_PKT(m);
return EINVAL;
}
More information about the svn-src-head
mailing list