Changeset df215a3 for protocols


Ignore:
Timestamp:
2015-10-08T04:58:59Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
35a7525
Parents:
c2969f9
git-author:
dequis <dx@…> (16-09-15 06:44:37)
git-committer:
dequis <dx@…> (08-10-15 04:58:59)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    rc2969f9 rdf215a3  
    385385        struct xt_node *response;
    386386        struct jabber_data *jd = ic->proto_data;
    387 
    388         response = jabber_make_packet("iq", "result", g_strdup_printf("%s@%s", jd->username, jd->server), NULL);
     387       
     388        response = jabber_make_packet("iq", "result", jd->me, NULL);
    389389
    390390        jabber_cache_add(ic, response, NULL);
Note: See TracChangeset for help on using the changeset viewer.