diff options
author | Kevin Harwell <kharwell@digium.com> | 2013-08-29 21:37:29 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2013-08-29 21:37:29 +0000 |
commit | e1cfc18a78195cce9504b61f0aaeb4b61582fa15 (patch) | |
tree | fa20c92a1aa3ae73d33d8394a9e5dc723837dff5 /main/config_options.c | |
parent | 449afdd9e8d38a5a479cc0320091fd315d2b4d4a (diff) |
Memory leaks fix
(closes ASTERISK-22376)
Reported by: John Hardin
Patches:
memleak.patch uploaded by jhardin (license 6512)
memleak2.patch uploaded by jhardin (license 6512)
........
Merged revisions 397946 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config_options.c')
-rw-r--r-- | main/config_options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/config_options.c b/main/config_options.c index 0d869b960..167647dc5 100644 --- a/main/config_options.c +++ b/main/config_options.c @@ -457,9 +457,11 @@ static int process_category(struct ast_config *cfg, struct aco_info *info, struc if (!ast_strlen_zero(file->skip_category)) { regex_skip = build_regex(file->skip_category); if (!regexec(regex_skip, cat, 0, NULL, 0)) { + regfree(regex_skip); ast_free(regex_skip); return 0; } + regfree(regex_skip); ast_free(regex_skip); } |