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)
commit29e3c6c5c3936b75f16811071e77904900edd86e
treee6d19459e9a568d0fcddcd31d8b9fb5f383535b6
parent85d892df2794d992c8e3554d8990d1306f114c11
df: fix memory leak in error case

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>
src/df.c