Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
29757:2ed0041a7b0f | 29758:21285007d703 |
---|---|
821 | 821 |
822 if (b == NULL) { | 822 if (b == NULL) { |
823 if (presence->jb != js->user_jb) { | 823 if (presence->jb != js->user_jb) { |
824 purple_debug_warning("jabber", "Got presence for unknown buddy %s on account %s (%p)\n", | 824 purple_debug_warning("jabber", "Got presence for unknown buddy %s on account %s (%p)\n", |
825 buddy_name, purple_account_get_username(account), account); | 825 buddy_name, purple_account_get_username(account), account); |
826 g_free(buddy_name); | |
826 return FALSE; | 827 return FALSE; |
827 } else { | 828 } else { |
828 /* this is a different resource of our own account. Resume even when this account isn't on our blist */ | 829 /* this is a different resource of our own account. Resume even when this account isn't on our blist */ |
829 } | 830 } |
830 } | 831 } |