Mercurial > pidgin
diff libpurple/protocols/jabber/parser.c @ 15634:baec42670246
Patch from MatsMattsson (Adium Trac #6429) which fixes a leak of attrib for any attribute that isn't 'id' or 'version'.
| author | Evan Schoenberg <evan.s@dreskin.net> |
|---|---|
| date | Thu, 15 Feb 2007 15:21:27 +0000 |
| parents | 0d4890637238 |
| children | 32c366eeeb99 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/parser.c Wed Feb 14 04:26:10 2007 +0000 +++ b/libpurple/protocols/jabber/parser.c Thu Feb 15 15:21:27 2007 +0000 @@ -54,9 +54,10 @@ js->protocol_version = JABBER_PROTO_1_0; g_free(attrib); } else if(!xmlStrcmp(attributes[i], (xmlChar*) "id")) { - if(js->stream_id) - g_free(js->stream_id); + g_free(js->stream_id); js->stream_id = attrib; + } else { + g_free(attrib); } } if(js->protocol_version == JABBER_PROTO_0_9)
