changeset 26252:94ffdbdd16fb

clear a double free bug
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sun, 08 Mar 2009 05:45:46 +0000
parents 8793f771eba4
children bfaed4d103b4
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Sun Mar 01 13:55:33 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Sun Mar 08 05:45:46 2009 +0000
@@ -1230,7 +1230,7 @@
 		}
 
 		if(protocol == 0)
-			who = temp;
+			who = g_strdup(temp);
 		else if(protocol == 2)
 			who = g_strconcat("msn/", temp, NULL);