]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_voicemail: Fix leaking config objects when msg_id doesn't match
authorJonathan Rose <jrose@digium.com>
Wed, 4 Sep 2013 21:11:48 +0000 (21:11 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 4 Sep 2013 21:11:48 +0000 (21:11 +0000)
(issues ASTERISK-22414)
Reported by: Corey Farrell
Patch:
    test_voicemail_api-leaks-11.patch uploaded by coreyfarrell (license 5909)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@398281 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 5dce9f8151cee0d86a7e580f8508eea904082297..fa2a3992155dcb766f392d7e267ca8f4a4597b82 100644 (file)
@@ -15159,6 +15159,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) {