From cfce0a60ee7d57148067ef7ea600410e566bd322 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Wed, 19 Nov 2014 17:49:30 +0100 Subject: [PATCH] Revert "Let snmp_synch_response deal with PDU freeing" This reverts commit e767dc103a142e1c57800f06a9c384f21a48aef5. The proper fix to this issue is in the collectd-4.10 branch. See also 79e90bba. --- src/snmp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/snmp.c b/src/snmp.c index b90e0ffa..3e6cb911 100644 --- 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) -- 2.11.0