diff options
author | dequis <dx@dxzone.com.ar> | 2015-09-16 03:44:37 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-10-08 01:58:59 -0300 |
commit | df215a327ad0619ff5be93ce4a38dddb2c297ac4 (patch) | |
tree | c5644120829a496e8e7343f9f3a884aaf3c8c000 /protocols/jabber/iq.c | |
parent | c2969f9feb1878cc9dbe143b7adeda56b66557e6 (diff) |
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.
Diffstat (limited to 'protocols/jabber/iq.c')
-rw-r--r-- | protocols/jabber/iq.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |