mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
app_voicemail: Fix leaking config objects when msg_id doesn't match
(issues ASTERISK-22414)
Reported by: Corey Farrell
Patch:
test_voicemail_api-leaks-11.patch uploaded by coreyfarrell (license 5909)
........
Merged revisions 398281 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 398283 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -15208,6 +15208,7 @@ static int message_range_and_existence_check(struct vm_state *vms, const char *m
|
||||
DISPOSE(vms->curdir, vms->curmsg);
|
||||
break;
|
||||
}
|
||||
ast_config_destroy(msg_cfg);
|
||||
DISPOSE(vms->curdir, vms->curmsg);
|
||||
}
|
||||
if (!found) {
|
||||
|
||||
Reference in New Issue
Block a user