[asterisk-commits] russell: branch 1.8 r360363 - /branches/1.8/apps/app_page.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 23 22:07:51 CDT 2012


Author: russell
Date: Fri Mar 23 22:07:48 2012
New Revision: 360363

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360363
Log:
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.

Modified:
    branches/1.8/apps/app_page.c

Modified: branches/1.8/apps/app_page.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_page.c?view=diff&rev=360363&r1=360362&r2=360363
==============================================================================
--- branches/1.8/apps/app_page.c (original)
+++ branches/1.8/apps/app_page.c Fri Mar 23 22:07:48 2012
@@ -296,6 +296,8 @@
 		ast_dial_destroy(dial);
 	}
 
+	ast_free(dial_list);
+
 	return -1;
 }
 




More information about the asterisk-commits mailing list