projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fbd510
)
swap plugin: fix leak on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 10 Aug 2016 15:17:57 +0000
(17:17 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 10 Aug 2016 15:17:57 +0000
(17:17 +0200)
src/swap.c
patch
|
blob
|
history
diff --git
a/src/swap.c
b/src/swap.c
index
15eca9a
..
9c63e9b
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-674,6
+674,7
@@
static int swap_read (void) /* {{{ */
{
ERROR ("swap plugin: Total swap space (%g) is less than used swap space (%g).",
total, used);
+ sfree (swap_entries);
return (-1);
}