projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
e9b1ff6
)
Merge pull request #1741 from rubenk/fix-leak-in-disk-plugin
author
Sebastian Harl
<sh@tokkee.org>
Sat, 4 Jun 2016 20:27:09 +0000
(22:27 +0200)
committer
Sebastian Harl
<sh@tokkee.org>
Sat, 4 Jun 2016 20:27:09 +0000
(22:27 +0200)
Plug a memory leak in disk plugin
src/disk.c
patch
|
blob
|
history
diff --git
a/src/disk.c
b/src/disk.c
index
255d4db
..
292f6e2
100644
(file)
--- a/
src/disk.c
+++ b/
src/disk.c
@@
-893,7
+893,13
@@
static int disk_read (void)
#endif
if (ignorelist_match (ignorelist, output_name) != 0)
+ {
+#if HAVE_LIBUDEV
+ /* release udev-based alternate name, if allocated */
+ sfree (output_name);
+#endif
continue;
+ }
if ((ds->read_bytes != 0) || (ds->write_bytes != 0))
disk_submit (output_name, "disk_octets",