projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4498367
)
Update smart.c
author
Florian Schüller
<schuellerf@users.noreply.github.com>
Wed, 10 Jun 2015 13:29:31 +0000
(15:29 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 10 Jun 2015 13:55:07 +0000
(15:55 +0200)
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?)
src/smart.c
patch
|
blob
|
history
diff --git
a/src/smart.c
b/src/smart.c
index
3b113bd
..
a9c563e
100644
(file)
--- 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);