changeset 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 5f85d0781bee
children 14afe5a92fc2 83ab13f4eee7
files libpurple/protocols/jabber/buddy.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);