mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@397946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user