pidgin: 604260c9: Fix a typo and a memleak.

sadrul at pidgin.im sadrul at pidgin.im
Sat Apr 10 17:25:38 EDT 2010


-----------------------------------------------------------------
Revision: 604260c9e7292e97965e739c46a85c6ddfb46a45
Ancestor: a37768446021f7c7e2905dc4f78c57f69676c381
Author: sadrul at pidgin.im
Date: 2010-04-10T21:28:07
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/604260c9e7292e97965e739c46a85c6ddfb46a45

Modified files:
        libpurple/protocols/yahoo/libymsg.c

ChangeLog: 

Fix a typo and a memleak.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c	5d0ff139112d8464db11b07cd53639a5a3eaaed2
+++ libpurple/protocols/yahoo/libymsg.c	ec7d703b27c74b532a454ae52683c3fc2c81bb9b
@@ -1773,7 +1773,7 @@ static gchar *yahoo_auth16_get_cookie_b(
 				tmp = &splits[i][14];
 				sem = strchr(tmp, ';');
 
-				if(tmp != NULL) {
+				if (sem != NULL) {
 					tmp2 = g_strndup(tmp, sem - tmp);
 					purple_debug_info("yahoo", "Got needed part of B cookie: %s\n",
 							tmp2 ? tmp2 : "(null)");
@@ -1783,6 +1783,7 @@ static gchar *yahoo_auth16_get_cookie_b(
 		}
 	}
 
+	g_strfreev(splits);
 	return tmp2;
 }
 


More information about the Commits mailing list