summaryrefslogtreecommitdiff
path: root/main/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/app.c')
-rw-r--r--main/app.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/app.c b/main/app.c
index e3a5f02c3..208db4b83 100644
--- a/main/app.c
+++ b/main/app.c
@@ -1562,6 +1562,7 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category)
if (!ast_strlen_zero(category) && regcomp(&regexbuf_category, category, REG_EXTENDED | REG_NOSUB)) {
ast_log(LOG_ERROR, "Regex compile failed on: %s\n", category);
+ regfree(&regexbuf_group);
return 0;
}