summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e767dc1)
raw | patch | inline | side by side (parent: e767dc1)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 19 Nov 2014 16:49:30 +0000 (17:49 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 19 Nov 2014 16:58:17 +0000 (17:58 +0100) |
This reverts commit e767dc103a142e1c57800f06a9c384f21a48aef5.
The proper fix to this issue is in the collectd-4.10 branch. See also
79e90bba.
The proper fix to this issue is in the collectd-4.10 branch. See also
79e90bba.
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index b90e0ffa69269f4ad67df7874423989521d7cb60..3e6cb9119cb7a8a40a24f330f2398b00e3b1d104 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
@@ -1437,9 +1437,8 @@ static int csnmp_read_table (host_definition_t *host, data_definition_t *data)
snmp_free_pdu (res);
res = NULL;
- /*
- * memory is handled by snmp_synch_response
- */
+ if (req != NULL)
+ snmp_free_pdu (req);
req = NULL;
if (status == 0)