From 1c4fe433e30bd0e9cd94b604f290efb6a409ab7c Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 10 Aug 2016 17:17:57 +0200 Subject: [PATCH] swap plugin: fix leak on error --- src/swap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/swap.c b/src/swap.c index 15eca9aa..9c63e9bb 100644 --- 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); } -- 2.30.2