package/netsnmp: fix memory leak in IP-MIB when running without IPv6
authorAdam Wujek <dev_public@wujek.eu>
Mon, 21 Dec 2020 11:25:34 +0000 (11:25 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 23 Dec 2020 08:33:37 +0000 (09:33 +0100)
commit5e6f6e074508ece2207b02545a8ede5a296978c9
treea10bdfc7792f66a4e322a4f1ba6bf2b763848be8
parent8def685b46f92fdda649a6fefe774d4be601f30e
package/netsnmp: fix memory leak in IP-MIB when running without IPv6

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.

Signed-off-by: Adam Wujek <dev_public@wujek.eu>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/netsnmp/0006-IP-MIB-Linux-Fix-a-memory-leak-in-an-error-path.patch [new file with mode: 0644]