diff libpurple/protocols/jabber/buddy.c @ 21596:637037d3748c

Fix a double-free and a leak at the same time. References: https://bugzilla.redhat.com/show_bug.cgi?id=390901
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 19 Nov 2007 20:50:48 +0000
parents 665e04562de0
children ce3d42470adf
line wrap: on
line diff
--- 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);