From df215a327ad0619ff5be93ce4a38dddb2c297ac4 Mon Sep 17 00:00:00 2001 From: dequis Date: Wed, 16 Sep 2015 03:44:37 -0300 Subject: jabber: Fix leak in jabber_gmail_handle_new From coverity. That g_strdup_printf() was really pointless, slightly ashamed we didn't notice that in the review of the patch. --- protocols/jabber/iq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/jabber/iq.c b/protocols/jabber/iq.c index 327cc859..b3fe4206 100644 --- a/protocols/jabber/iq.c +++ b/protocols/jabber/iq.c @@ -384,8 +384,8 @@ static xt_status jabber_gmail_handle_new(struct im_connection *ic, struct xt_nod { struct xt_node *response; struct jabber_data *jd = ic->proto_data; - - response = jabber_make_packet("iq", "result", g_strdup_printf("%s@%s", jd->username, jd->server), NULL); + + response = jabber_make_packet("iq", "result", jd->me, NULL); jabber_cache_add(ic, response, NULL); if (!jabber_write_packet(ic, response)) { -- cgit v1.2.3