From: Peter Korsgaard Date: Wed, 23 Dec 2020 09:50:01 +0100 Subject: [Buildroot] [PATCH 1/1] package/netsnmp: fix memory leak in IP-MIB when running without IPv6 In-Reply-To: <1608549912-29585-1-git-send-email-dev_public@wujek.eu> (Adam Wujek's message of "Mon, 21 Dec 2020 11:25:34 +0000") References: <1608549912-29585-1-git-send-email-dev_public@wujek.eu> Message-ID: <87lfdokiti.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Adam" == Adam Wujek writes: > In a Linux system without IPv6 support (or booted with "ipv6.disable=1") > file /proc/net/snmp6 is not present. If such file is not present an allocated > memory is not freed. Memory leak occurs even without snmp queries. > Problem seen at least since netsnmp 5.7.3 (probably even v5.6.1). > Patch backported from netsnmp 5.9, where the problem does not appear any more. Committed, thanks. This function is only called once, right? -- Bye, Peter Korsgaard