projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f57476
)
swap plugin: Add a missing "free" in an error case.
author
Florian Forster
<octo@huhu.verplant.org>
Wed, 19 May 2010 09:30:42 +0000
(11:30 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Wed, 19 May 2010 09:30:42 +0000
(11:30 +0200)
Also fixes a minor format string problem.
src/swap.c
patch
|
blob
|
history
diff --git
a/src/swap.c
b/src/swap.c
index
8ddf1e3
..
e5cbf33
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-400,9
+400,10
@@
static int swap_read (void)
if (total < avail)
{
- ERROR ("swap plugin: Total swap space (%"PRI
u
64") "
- "is less than free swap space (%"PRI
u
64").",
+ ERROR ("swap plugin: Total swap space (%"PRI
i
64") "
+ "is less than free swap space (%"PRI
i
64").",
total, avail);
+ sfree (s);
return (-1);
}