X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsnmp.c;h=6466503bd390887a674944f441c7c47e5f3550ed;hb=781f635e0a1bb1f85b4e415f21eea68181c3f8dd;hp=7d6e0a10fc2484683a97417a2f0fe154e8b73eea;hpb=e30c4b09f2ba06ed279d7ddfdc3714e1b3ab3a06;p=collectd.git diff --git a/src/snmp.c b/src/snmp.c index 7d6e0a10..6466503b 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1618,8 +1618,9 @@ 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); + /* + * memory is handled by snmp_synch_response + */ req = NULL; if (status == 0)