Issue: #2291
Signed-off-by: Florian Forster <octo@collectd.org>
- /* snmp_sess_synch_response always frees our req PDU */
status = snmp_sess_synch_response(host->sess_handle, req, &res);
status = snmp_sess_synch_response(host->sess_handle, req, &res);
+
+ /* snmp_sess_synch_response always frees our req PDU */
+ req = NULL;
+
if ((status != STAT_SUCCESS) || (res == NULL)) {
char *errstr = NULL;
if ((status != STAT_SUCCESS) || (res == NULL)) {
char *errstr = NULL;