src/utils_threshold.c: Free allocated memory before returning..
authorPeter Holik <holik@it-technology.at>
Tue, 12 Aug 2008 09:04:27 +0000 (11:04 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 12 Aug 2008 09:04:27 +0000 (11:04 +0200)
..in an error condition.

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);
   }