From 16fde0c303ae0afb7c945a78341c09df27c5cdbc Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 27 Nov 2015 22:14:08 +0100 Subject: [PATCH] snmp plugin: plug leak in error path. Partial back port of #1368. Signed-off-by: Florian Forster --- src/snmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/snmp.c b/src/snmp.c index acbdca0b..6ecdfafb 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1551,6 +1551,7 @@ static int csnmp_read_value (host_definition_t *host, data_definition_t *data) res = NULL; sfree (errstr); + sfree (vl.values); csnmp_host_close_session (host); return (-1); -- 2.11.0