Mercurial > pidgin
diff libpurple/protocols/jabber/presence.c @ 29758:21285007d703
jabber: Don't leak the buddy_name on this error
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 19 Apr 2010 20:17:20 +0000 |
parents | b0f8dcab7b43 |
children | 5286451c3d44 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Mon Apr 19 16:06:43 2010 +0000 +++ b/libpurple/protocols/jabber/presence.c Mon Apr 19 20:17:20 2010 +0000 @@ -823,6 +823,7 @@ if (presence->jb != js->user_jb) { purple_debug_warning("jabber", "Got presence for unknown buddy %s on account %s (%p)\n", buddy_name, purple_account_get_username(account), account); + g_free(buddy_name); return FALSE; } else { /* this is a different resource of our own account. Resume even when this account isn't on our blist */