Mon, 19 Nov 2007 20:50:48 +0000
Fix a double-free and a leak at the same time.
References: https://bugzilla.redhat.com/show_bug.cgi?id=390901
| libpurple/protocols/jabber/buddy.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/jabber/buddy.c Mon Nov 19 15:31:59 2007 +0000 +++ b/libpurple/protocols/jabber/buddy.c Mon Nov 19 20:50:48 2007 +0000 @@ -558,7 +558,7 @@ g_free(widthstring); heightstring = g_strdup_printf("%u", height); xmlnode_set_attrib(info, "height", heightstring); - g_free(lengthstring); + g_free(heightstring); /* publish the metadata */ jabber_pep_publish((JabberStream*)gc->proto_data, publish);