svn commit: r282051 - head/sys/netpfil/ipfw
Gleb Smirnoff
glebius at FreeBSD.org
Mon Apr 27 05:44:10 UTC 2015
Author: glebius
Date: Mon Apr 27 05:44:09 2015
New Revision: 282051
URL: https://svnweb.freebsd.org/changeset/base/282051
Log:
Fix memory leak.
PR: 199670
Reviewed by: ae
Modified:
head/sys/netpfil/ipfw/ip_fw_nat.c
Modified: head/sys/netpfil/ipfw/ip_fw_nat.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw_nat.c Mon Apr 27 05:42:14 2015 (r282050)
+++ head/sys/netpfil/ipfw/ip_fw_nat.c Mon Apr 27 05:44:09 2015 (r282051)
@@ -242,6 +242,8 @@ add_redir_spool_cfg(char *buf, struct cf
}
if (r->alink[0] == NULL) {
printf("LibAliasRedirect* returned NULL\n");
+ free(r->alink, M_IPFW);
+ free(r, M_IPFW);
return (EINVAL);
}
/* LSNAT handling. */
More information about the svn-src-all
mailing list