Date: Thu, 2 Oct 2014 19:50:45 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369855 - in head/devel/plan9port: . files Message-ID: <201410021950.s92JojYX068929@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius (src committer) Date: Thu Oct 2 19:50:44 2014 New Revision: 369855 URL: https://svnweb.freebsd.org/changeset/ports/369855 QAT: https://qat.redports.org/buildarchive/r369855/ Log: Fix memory leak in last revision. Approved by: bapt (blanket) Modified: head/devel/plan9port/Makefile head/devel/plan9port/files/patch-src-cmd-auxstats-FreeBSD.c Modified: head/devel/plan9port/Makefile ============================================================================== --- head/devel/plan9port/Makefile Thu Oct 2 19:31:52 2014 (r369854) +++ head/devel/plan9port/Makefile Thu Oct 2 19:50:44 2014 (r369855) @@ -3,7 +3,7 @@ PORTNAME= plan9port PORTVERSION= 20140306 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel plan9 MASTER_SITES= http://swtch.com/${PORTNAME}/ Modified: head/devel/plan9port/files/patch-src-cmd-auxstats-FreeBSD.c ============================================================================== --- head/devel/plan9port/files/patch-src-cmd-auxstats-FreeBSD.c Thu Oct 2 19:31:52 2014 (r369854) +++ head/devel/plan9port/files/patch-src-cmd-auxstats-FreeBSD.c Thu Oct 2 19:50:44 2014 (r369855) @@ -1,5 +1,5 @@ --- src/cmd/auxstats/FreeBSD.c.orig 2010-03-18 01:25:34.000000000 +0300 -+++ src/cmd/auxstats/FreeBSD.c 2014-10-02 22:55:32.000000000 +0400 ++++ src/cmd/auxstats/FreeBSD.c 2014-10-02 23:43:36.000000000 +0400 @@ -8,20 +8,15 @@ #include <sys/time.h> #include <sys/dkstat.h> @@ -30,7 +30,7 @@ { "_cp_time" }, { "" } }; -@@ -86,44 +80,26 @@ +@@ -86,45 +80,28 @@ void xnet(int first) { @@ -85,5 +85,7 @@ + inb += IFA_STAT(ibytes); + err += IFA_STAT(oerrors) + IFA_STAT(ierrors); } ++ freeifaddrs(ifap); Bprint(&bout, "etherin %lud 1000\n", in); Bprint(&bout, "etherout %lud 1000\n", out); + Bprint(&bout, "etherinb %lud 1000000\n", inb);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410021950.s92JojYX068929>