[svn-commits] mmichelson: trunk r195763 - /trunk/apps/app_dial.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed May 20 15:14:31 CDT 2009


Author: mmichelson
Date: Wed May 20 15:14:28 2009
New Revision: 195763

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195763
Log:
Plug a memory leak in app_dial.

Since we may have copied connected line info into the chanlist struct prior
to placing an outbound call, we need to be sure to free the allocated data
when we hang the call up.


Modified:
    trunk/apps/app_dial.c

Modified: trunk/apps/app_dial.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/apps/app_dial.c?view=diff&rev=195763&r1=195762&r2=195763
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Wed May 20 15:14:28 2009
@@ -594,6 +594,7 @@
 				/* This is for the channel drivers */
 				outgoing->chan->hangupcause = AST_CAUSE_ANSWERED_ELSEWHERE;
 			}
+			ast_party_connected_line_free(&outgoing->connected);
 			ast_hangup(outgoing->chan);
 		}
 		oo = outgoing;




More information about the svn-commits mailing list