summaryrefslogtreecommitdiff
path: root/apps/app_page.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2012-03-24 03:11:43 +0000
committerRussell Bryant <russell@russellbryant.com>2012-03-24 03:11:43 +0000
commit0ec73946fa588774a9c0b4225ab9b33a41fc06d4 (patch)
tree161cd17716a749108c8b786e4504d7e1b950e73b /apps/app_page.c
parent71a1541b0c637b270274bf9045643cf1df47f08b (diff)
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 ........ Merged revisions 360364 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_page.c')
-rw-r--r--apps/app_page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_page.c b/apps/app_page.c
index f9170d43a..61172fc8e 100644
--- a/apps/app_page.c
+++ b/apps/app_page.c
@@ -329,6 +329,8 @@ static int page_exec(struct ast_channel *chan, const char *data)
ast_dial_destroy(dial);
}
+ ast_free(dial_list);
+
return -1;
}