From owner-svn-ports-all@freebsd.org Tue Oct 13 12:18:18 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A77BA1272B; Tue, 13 Oct 2015 12:18:18 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D6BD1E2B; Tue, 13 Oct 2015 12:18:18 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9DCIHQT007878; Tue, 13 Oct 2015 12:18:17 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9DCIH7l007875; Tue, 13 Oct 2015 12:18:17 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201510131218.t9DCIH7l007875@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Tue, 13 Oct 2015 12:18:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399188 - in head/net-mgmt/net-snmp: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 12:18:18 -0000 Author: zi Date: Tue Oct 13 12:18:17 2015 New Revision: 399188 URL: https://svnweb.freebsd.org/changeset/ports/399188 Log: - Fix two memory leaks (reported in upstream bug #2674) - Bump PORTREVISION Submitted by: Laurent GOUHIER Obtained from: valgrind Added: head/net-mgmt/net-snmp/files/patch-agent_mibgroup_tcp-mib_data__access_tcpConn__freebsd4.c (contents, props changed) head/net-mgmt/net-snmp/files/patch-agent_mibgroup_udp-mib_data__access_udp__endpoint__freebsd4.c (contents, props changed) Modified: head/net-mgmt/net-snmp/Makefile Modified: head/net-mgmt/net-snmp/Makefile ============================================================================== --- head/net-mgmt/net-snmp/Makefile Tue Oct 13 12:13:15 2015 (r399187) +++ head/net-mgmt/net-snmp/Makefile Tue Oct 13 12:18:17 2015 (r399188) @@ -3,7 +3,7 @@ PORTNAME= snmp PORTVERSION= 5.7.3 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= net-mgmt ipv6 MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= net- @@ -37,7 +37,7 @@ GNU_CONFIGURE= yes USE_RC_SUBR= snmpd snmptrapd USE_OPENSSL= yes USE_LDCONFIG= yes -USES= cpe perl5 libtool +USES= cpe libtool perl5 CPE_VENDOR= net-snmp USE_PERL5= build run USE_CSTD= c99 Added: head/net-mgmt/net-snmp/files/patch-agent_mibgroup_tcp-mib_data__access_tcpConn__freebsd4.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/net-snmp/files/patch-agent_mibgroup_tcp-mib_data__access_tcpConn__freebsd4.c Tue Oct 13 12:18:17 2015 (r399188) @@ -0,0 +1,11 @@ +--- agent/mibgroup/tcp-mib/data_access/tcpConn_freebsd4.c.orig 2015-10-13 12:04:38 UTC ++++ agent/mibgroup/tcp-mib/data_access/tcpConn_freebsd4.c +@@ -216,6 +216,8 @@ _load(netsnmp_container *container, u_in + CONTAINER_INSERT(container, entry); + } + ++ free(tcpcb_buf); ++ + if(rc<0) + return rc; + Added: head/net-mgmt/net-snmp/files/patch-agent_mibgroup_udp-mib_data__access_udp__endpoint__freebsd4.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/net-snmp/files/patch-agent_mibgroup_udp-mib_data__access_udp__endpoint__freebsd4.c Tue Oct 13 12:18:17 2015 (r399188) @@ -0,0 +1,11 @@ +--- agent/mibgroup/udp-mib/data_access/udp_endpoint_freebsd4.c.orig 2015-10-13 12:04:44 UTC ++++ agent/mibgroup/udp-mib/data_access/udp_endpoint_freebsd4.c +@@ -187,6 +187,8 @@ _load(netsnmp_container *container, u_in + CONTAINER_INSERT(container, entry); + } + ++ free(udpcb_buf); ++ + if(rc<0) + return rc; +