From 79b5c41187f04cc50a634ebe681e06340869e387 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 21 Oct 2010 01:11:02 +0100 Subject: Another memory leak fix. --- protocols/jabber/jabber_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/jabber/jabber_util.c b/protocols/jabber/jabber_util.c index ab3e6c38..504e0c28 100644 --- a/protocols/jabber/jabber_util.c +++ b/protocols/jabber/jabber_util.c @@ -579,7 +579,8 @@ int jabber_buddy_remove( struct im_connection *ic, char *full_jid_ ) ( ( s == NULL && bud->resource == NULL ) || ( bud->resource && s && strcmp( bud->resource, s + 1 ) == 0 ) ) ) { - return jabber_buddy_remove_bare( ic, full_jid ); + g_free( full_jid ); + return jabber_buddy_remove_bare( ic, full_jid_ ); } else if( s == NULL || bud->resource == NULL ) { -- cgit v1.2.3