Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2015 05:44:10 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282051 - head/sys/netpfil/ipfw
Message-ID:  <201504270544.t3R5iALg023220@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504270544.t3R5iALg023220>