multimeter plugin: fix fd leak
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 20:56:40 +0000 (21:56 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 5 Dec 2015 07:52:29 +0000 (08:52 +0100)
commitb8913bc047474aa0a3bfbf03ecbb3b5050605ed1
treed6535110e618723a0d6431a0c324558fa402d1cd
parente61246f70a8e81b034db36f2dd20ea0086198808
multimeter plugin: fix fd leak

If open returns 0 we leak fd.

CID #38016

Signed-off-by: Florian Forster <octo@collectd.org>
src/multimeter.c