# HG changeset patch # User Daniel Atallah # Date 1159230482 0 # Node ID 86e1ebd8ee7fd0db1a2192982f3cc5bf6e0e8222 # Parent f8beee12ade9de32b7b52c132043b8584a4f7227 [gaim-migrate @ 17352] Avoid allocating, duping and deallocating. committer: Tailor Script diff -r f8beee12ade9 -r 86e1ebd8ee7f libgaim/protocols/jabber/parser.c --- a/libgaim/protocols/jabber/parser.c Mon Sep 25 21:14:24 2006 +0000 +++ b/libgaim/protocols/jabber/parser.c Tue Sep 26 00:28:02 2006 +0000 @@ -51,12 +51,12 @@ if(!strcmp(attributes[i], "version") && !strcmp(attrib, "1.0")) { js->protocol_version = JABBER_PROTO_1_0; + g_free(attrib); } else if(!strcmp(attributes[i], "id")) { if(js->stream_id) g_free(js->stream_id); - js->stream_id = g_strdup(attrib); + js->stream_id = attrib; } - g_free(attrib); } if(js->protocol_version == JABBER_PROTO_0_9) js->auth_type = JABBER_AUTH_IQ_AUTH;