Code

snmp_agent plugin: Fix memory leak.
authorFlorian Forster <octo@collectd.org>
Wed, 15 Nov 2017 20:38:32 +0000 (21:38 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 17 Nov 2017 12:21:55 +0000 (13:21 +0100)
commit7a8ce497dc369ffee8d942616e808a5abfca9d3e
tree5890c5851759cde7bcd9a2feee342c55e161177e
parent7c2336dde35a7b42853b6ca167d4164619e52333
snmp_agent plugin: Fix memory leak.

Allocate "entry" later so that the error handling blocks don't leak it.

CID: 179244
src/snmp_agent.c