df: fix memory leak in error case
authorToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
Wed, 6 Dec 2017 12:19:41 +0000 (12:19 +0000)
committerFlorian Forster <octo@collectd.org>
Thu, 7 Dec 2017 16:14:48 +0000 (17:14 +0100)
Because the memory of the STATANYFS list is not released
when the read callback function error occurs,
a memory leak may occur.
With this change, the memory is always released
by not returning in the loop.

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

No differences found