Merge branch 'collectd-4.10' into collectd-5.3
[collectd.git] / src / snmp.c
index ad81c89..3e6cb91 100644 (file)
@@ -1437,6 +1437,10 @@ static int csnmp_read_table (host_definition_t *host, data_definition_t *data)
     snmp_free_pdu (res);
   res = NULL;
 
+  if (req != NULL)
+    snmp_free_pdu (req);
+  req = NULL;
+
   if (status == 0)
     csnmp_dispatch_table (host, data, instance_list_head, value_list_head);