Date: Tue, 13 Oct 2015 12:18:17 +0000 (UTC) From: Ryan Steinmetz <zi@FreeBSD.org> 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 Message-ID: <201510131218.t9DCIH7l007875@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <lg@efficientip.com> 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; +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510131218.t9DCIH7l007875>