[asterisk-commits] mogorman: trunk r44983 - in /trunk: ./ channels/chan_gtalk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Oct 12 13:41:38 MST 2006


Author: mogorman
Date: Thu Oct 12 15:41:37 2006
New Revision: 44983

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

........
r44982 | mogorman | 2006-10-12 15:34:49 -0500 (Thu, 12 Oct 2006) | 2 lines

fix for bug 7764.

........

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?rev=44983&r1=44982&r2=44983&view=diff
==============================================================================
--- trunk/channels/chan_gtalk.c (original)
+++ trunk/channels/chan_gtalk.c Thu Oct 12 15:41:37 2006
@@ -879,10 +879,11 @@
 	if(strchr(tmp->us, '/')) {
 		data = ast_strdupa((char *) tmp->us);
 		exten = strsep(&data, "/");
-		free(data);
 	} else
 		exten = tmp->us;
 	ast_copy_string(tmp->exten,  exten, sizeof(tmp->exten));
+	if(data)
+		free(data);
 	ast_mutex_init(&tmp->lock);
 	ast_mutex_lock(&gtalklock);
 	tmp->next = client->p;



More information about the asterisk-commits mailing list