Mercurial > pidgin.yaz
changeset 30109:ccaaee2a8e59
Fix a typo and a memleak.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 10 Apr 2010 21:28:07 +0000 |
parents | 258454cfecee |
children | 8474495b9dfc |
files | libpurple/protocols/yahoo/libymsg.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }