[asterisk-commits] mogorman: branch 1.4 r44982 - /branches/1.4/channels/chan_gtalk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Oct 12 13:34:50 MST 2006


Author: mogorman
Date: Thu Oct 12 15:34:49 2006
New Revision: 44982

URL: http://svn.digium.com/view/asterisk?rev=44982&view=rev
Log:
fix for bug 7764.

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?rev=44982&r1=44981&r2=44982&view=diff
==============================================================================
--- branches/1.4/channels/chan_gtalk.c (original)
+++ branches/1.4/channels/chan_gtalk.c Thu Oct 12 15:34:49 2006
@@ -877,10 +877,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