From 96c7236a210a3e85116c053ac79fe10c38a3a9d4 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 19 May 2010 11:30:42 +0200 Subject: [PATCH] swap plugin: Add a missing "free" in an error case. Also fixes a minor format string problem. --- src/swap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.30.2