diff options
author | swirl <roachh@protonmail.com> | 2021-10-13 15:02:05 -0400 |
---|---|---|
committer | swirl <roachh@protonmail.com> | 2021-10-13 15:02:05 -0400 |
commit | 0653200965122c46be4f31996d2396b568ee8dcf (patch) | |
tree | 140e1f9642013b5de028d834248761e357d610fb /src/xmpp/stanza.c | |
parent | feaa770444a1063f9a272e90d84b711b09669548 (diff) | |
download | profani-tty-0653200965122c46be4f31996d2396b568ee8dcf.tar.gz |
registration: memory leaks, error checking
Diffstat (limited to 'src/xmpp/stanza.c')
-rw-r--r-- | src/xmpp/stanza.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index 22835d1f..4849f3e1 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -2755,8 +2755,7 @@ xmpp_stanza_t* stanza_register_new_account(xmpp_ctx_t* ctx, const char* const user, const char* const password) { char* id = connection_create_stanza_id(); - //char* id = "reg2"; - xmpp_stanza_t* iq = xmpp_iq_new(ctx, STANZA_TYPE_SET, strdup(id)); + xmpp_stanza_t* iq = xmpp_iq_new(ctx, STANZA_TYPE_SET, id); free(id); xmpp_stanza_t* register_new_account = xmpp_stanza_new(ctx); |