Fix a double-free and a leak at the same time.

Mon, 19 Nov 2007 20:50:48 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Mon, 19 Nov 2007 20:50:48 +0000
changeset 21681
80530c8be0a1
parent 21680
1b52846a0d97
child 21682
cfbbf5c5217f
child 21683
73421a549f7f

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);

mercurial