From: Ruben Kerkhof Date: Wed, 10 Aug 2016 15:17:57 +0000 (+0200) Subject: swap plugin: fix leak on error X-Git-Tag: collectd-5.6.0~59 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1c4fe433e30bd0e9cd94b604f290efb6a409ab7c;p=collectd.git swap plugin: fix leak on error --- 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); }