[asterisk-commits] qwell: branch 1.4 r87906 - /branches/1.4/channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 31 16:16:20 CDT 2007


Author: qwell
Date: Wed Oct 31 16:16:20 2007
New Revision: 87906

URL: http://svn.digium.com/view/asterisk?view=rev&rev=87906
Log:
Don't try to allocate memory that we're just going to re-allocate later anyways.

Issue 11130, patch by eliel.

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=87906&r1=87905&r2=87906
==============================================================================
--- branches/1.4/channels/chan_gtalk.c (original)
+++ branches/1.4/channels/chan_gtalk.c Wed Oct 31 16:16:20 2007
@@ -1221,9 +1221,6 @@
 	if(!from)
 		from = c->jid->full;
 
-	newcandidate = ast_calloc(1, sizeof(*newcandidate));
-	if (!newcandidate)
-		return 0;
 	for (tmp = client->p; tmp; tmp = tmp->next) {
 		if (iks_find_with_attrib(pak->x, "session", "id", tmp->sid)) {
 			p = tmp;




More information about the asterisk-commits mailing list