From: Ruben Kerkhof Date: Fri, 27 Nov 2015 21:14:08 +0000 (+0100) Subject: snmp plugin: plug leak in error path. X-Git-Tag: collectd-5.5.1~40^2~25 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=16fde0c303ae0afb7c945a78341c09df27c5cdbc;p=collectd.git snmp plugin: plug leak in error path. Partial back port of #1368. Signed-off-by: Florian Forster --- 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);