[asterisk-commits] phsultan: branch 1.4 r112820 - /branches/1.4/channels/chan_gtalk.c

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


Author: phsultan
Date: Fri Apr  4 14:26:15 2008
New Revision: 112820

URL: http://svn.digium.com/view/asterisk?view=rev&rev=112820
Log:
Free newly allocated channel before returning

Modified:
    branches/1.4/channels/chan_gtalk.c

Modified: branches/1.4/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_gtalk.c?view=diff&rev=112820&r1=112819&r2=112820
==============================================================================
--- branches/1.4/channels/chan_gtalk.c (original)
+++ branches/1.4/channels/chan_gtalk.c Fri Apr  4 14:26:15 2008
@@ -1203,10 +1203,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