summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:13:24 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:13:24 -0400
commit726eabd9d302ba8f039dd258f903c71d483eb38f (patch)
tree594422dc38fba8670f6f430efe6e27725e0253e3
parent69e9a3924cb5b41bb045c1e3e45fde5c1abf46b5 (diff)
remember to unref regex
-rw-r--r--string_utils.c4
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;
}