From: Russell Bryant Date: Sat, 24 Mar 2012 03:10:22 +0000 (+0000) Subject: app_page: Fix a memory leak on every Page(). X-Git-Tag: 10.3.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bcf95931eaa91aa258e96305cea970d2200fd5d;p=thirdparty%2Fasterisk.git app_page: Fix a memory leak on every Page(). dial_list is a dynamically allocated array that is allocated at the beginning of Page() based on how many devices will be dialed. This was never being freed. ........ Merged revisions 360363 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@360364 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_page.c b/apps/app_page.c index f35dfedd32..40b102da71 100644 --- a/apps/app_page.c +++ b/apps/app_page.c @@ -296,6 +296,8 @@ static int page_exec(struct ast_channel *chan, const char *data) ast_dial_destroy(dial); } + ast_free(dial_list); + return -1; }