Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2015 22:31:38 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284475 - head/usr.sbin/syslogd
Message-ID:  <201506162231.t5GMVccO043913@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Tue Jun 16 22:31:38 2015
New Revision: 284475
URL: https://svnweb.freebsd.org/changeset/base/284475

Log:
  syslogd: don't leak finet0.
  
  Submitted by:	Kurt Lidl <lidl pix.net>
  Sponsored by:	Pi-Coral, Inc.

Modified:
  head/usr.sbin/syslogd/syslogd.c

Modified: head/usr.sbin/syslogd/syslogd.c
==============================================================================
--- head/usr.sbin/syslogd/syslogd.c	Tue Jun 16 22:26:22 2015	(r284474)
+++ head/usr.sbin/syslogd/syslogd.c	Tue Jun 16 22:31:38 2015	(r284475)
@@ -587,6 +587,7 @@ main(int argc, char *argv[])
 					finet[(*finet)+i] = finet0[i];
 				}
 				*finet = total - 1;
+				free(finet0);
 			}
 		}
 	}



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