From: Jonathan Rose Date: Wed, 4 Sep 2013 21:11:48 +0000 (+0000) Subject: app_voicemail: Fix leaking config objects when msg_id doesn't match X-Git-Tag: 11.6.0-rc1~3^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ddd169b536521767a14753318f41a6b6a7c956;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@398281 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5dce9f8151..fa2a399215 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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) {