diff options
-rw-r--r-- | string_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/string_utils.c b/string_utils.c index 67ad827..3e3bcbb 100644 --- a/string_utils.c +++ b/string_utils.c @@ -190,5 +190,7 @@ gboolean String_is_it_numeric(char *parameter) { 0,
NULL);
- return g_regex_match (numeric_regex, parameter, 0, NULL);
+ gboolean match = g_regex_match (numeric_regex, parameter, 0, NULL);
+ g_regex_unref (numeric_regex);
+ return match;
}
|