snmp plugin: Fix double free of request PDU
authorPavel Rochnyack <pavel2000@ngs.ru>
Wed, 31 May 2017 16:27:13 +0000 (23:27 +0700)
committerFlorian Forster <octo@collectd.org>
Wed, 27 Sep 2017 06:15:35 +0000 (08:15 +0200)
snmp_sess_synch_response() always frees request PDU, in both case of request
error and success. If error condition occurs inside of `while (status == 0)`
loop, double free of `req` happens.

Issue: #2291
Signed-off-by: Florian Forster <octo@collectd.org>

No differences found