Code

battery plugin: Implement the ValuesPercentage option.
[collectd.git] / src / snmp.c
index 3be2ae262b617bc1408ed74b9f72558295bed6c5..7d6e0a10fc2484683a97417a2f0fe154e8b73eea 100644 (file)
@@ -1618,6 +1618,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);