From: Florian Forster Date: Wed, 19 May 2010 09:30:42 +0000 (+0200) Subject: swap plugin: Add a missing "free" in an error case. X-Git-Tag: collectd-5.0.0-beta0~118 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=96c7236a210a3e85116c053ac79fe10c38a3a9d4;p=collectd.git swap plugin: Add a missing "free" in an error case. Also fixes a minor format string problem. --- diff --git a/src/swap.c b/src/swap.c index 8ddf1e34..e5cbf333 100644 --- 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 (%"PRIu64") " - "is less than free swap space (%"PRIu64").", + ERROR ("swap plugin: Total swap space (%"PRIi64") " + "is less than free swap space (%"PRIi64").", total, avail); + sfree (s); return (-1); }