Merge branch 'collectd-5.5' into collectd-5.6
[collectd.git] / src / swap.c
index 15eca9a..9c63e9b 100644 (file)
@@ -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);
        }