summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3b53b4)
raw | patch | inline | side by side (parent: f3b53b4)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 27 Nov 2015 21:14:08 +0000 (22:14 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 28 Nov 2015 06:50:45 +0000 (07:50 +0100) |
Partial back port of #1368.
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index 33a76e33f01bfb767c4d7bcf285759bb033401b9..3d6604183ea1cbcb626262149a66d241ba3d9f17 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
status = cf_util_get_string(ci, &hd->name);
if (status != 0)
+ {
+ sfree (hd);
return status;
+ }
hd->sess_handle = NULL;
hd->interval = 0;