X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fswap.c;h=e5cbf3336c8da55e8a8fe1303df6ba85ebc9df41;hb=6a5ea214ee92faad825f927e54c64575432cb328;hp=8ddf1e340785f9d9c51d14c085ce5985b3cce0c0;hpb=1f57476bee2e0311d39f30fa50c3da4d74f654ba;p=collectd.git 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); }