From: Florian Schüller Date: Wed, 10 Jun 2015 13:29:31 +0000 (+0200) Subject: Update smart.c X-Git-Tag: collectd-5.5.1~127 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c1ab6fbbe957b17d46e9bc9f8a0f042d709180c7;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);