src/utils_threshold.c: Free allocated memory before returning..
[collectd.git] / src / utils_threshold.c
index 778b40b..7676a5a 100644 (file)
@@ -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);
   }