From: Florian Schüller Date: Wed, 10 Jun 2015 13:29:31 +0000 (+0200) Subject: Update smart.c X-Git-Tag: collectd-5.6.0~694^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a49ae41e44268b9972472e8355070c1299d18d5e;p=collectd.git Update smart.c Are you sure this doesn't memory-leak? (I didn't have time to run valgrind but is it possible that this command is missing?) --- diff --git a/src/smart.c b/src/smart.c index 3b113bd3..a9c563ea 100644 --- a/src/smart.c +++ b/src/smart.c @@ -253,6 +253,7 @@ static int smart_read (void) /* Query status with libatasmart */ smart_handle_disk (devpath); + udev_device_unref(dev); } udev_enumerate_unref (enumerate);