X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsnmp.c;h=7d6e0a10fc2484683a97417a2f0fe154e8b73eea;hb=103f05e098865196fc5f28df51e99b64fd6b5202;hp=3be2ae262b617bc1408ed74b9f72558295bed6c5;hpb=6e430c3eea4a35438b634ae00fc32052b30ec9ae;p=collectd.git diff --git a/src/snmp.c b/src/snmp.c index 3be2ae26..7d6e0a10 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -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);