[asterisk-commits] phsultan: trunk r112821 - in /trunk: ./ channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 4 14:28:49 CDT 2008


Author: phsultan
Date: Fri Apr  4 14:28:49 2008
New Revision: 112821

URL: http://svn.digium.com/view/asterisk?view=rev&rev=112821
Log:
Merged revisions 112820 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r112820 | phsultan | 2008-04-04 21:26:15 +0200 (Fri, 04 Apr 2008) | 1 line

Free newly allocated channel before returning
........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_gtalk.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_gtalk.c?view=diff&rev=112821&r1=112820&r2=112821
==============================================================================
--- trunk/channels/chan_gtalk.c (original)
+++ trunk/channels/chan_gtalk.c Fri Apr  4 14:28:49 2008
@@ -1177,10 +1177,11 @@
 		ast_log(LOG_WARNING, "Capabilities don't match : us - %s, peer - %s, combined - %s \n", ast_getformatname_multiple(s1, BUFSIZ, p->capability),
 			ast_getformatname_multiple(s2, BUFSIZ, p->peercapability),
 			ast_getformatname_multiple(s3, BUFSIZ, p->jointcapability));
-			/* close session if capabilities don't match */
+		/* close session if capabilities don't match */
 		gtalk_action(client, p, "reject");
 		p->alreadygone = 1;
 		gtalk_hangup(chan);
+		ast_channel_free(chan);
 		return -1;
 	}	
 




More information about the asterisk-commits mailing list