From: Peter Holik Date: Tue, 12 Aug 2008 09:04:27 +0000 (+0200) Subject: src/utils_threshold.c: Free allocated memory before returning.. X-Git-Tag: collectd-4.3.4~19 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=111a5eb7b68da0478b16de31dff422a213a03799;p=collectd.git src/utils_threshold.c: Free allocated memory before returning.. ..in an error condition. --- diff --git a/src/utils_threshold.c b/src/utils_threshold.c index 778b40bb..7676a5a1 100644 --- a/src/utils_threshold.c +++ b/src/utils_threshold.c @@ -711,6 +711,7 @@ int ut_check_interesting (const char *name) if (status != 0) { ERROR ("ut_check_interesting: parse_identifier failed."); + sfree (name_copy); return (-1); }