# HG changeset patch # User Sadrul Habib Chowdhury # Date 1270934887 0 # Node ID ccaaee2a8e59aed041d50f9b20826edf4fa58bbb # Parent 258454cfeceead5e654892ff1a97d8e2e082987f Fix a typo and a memleak. diff -r 258454cfecee -r ccaaee2a8e59 libpurple/protocols/yahoo/libymsg.c --- a/libpurple/protocols/yahoo/libymsg.c Sat Apr 10 19:45:47 2010 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Sat Apr 10 21:28:07 2010 +0000 @@ -1773,7 +1773,7 @@ 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 @@ } } + g_strfreev(splits); return tmp2; }