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.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@360363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2012-03-24 03:07:48 +00:00
parent 093121050f
commit dea36a06bb

View File

@@ -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;
}