about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 22:26:28 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 22:26:28 +0100
commit6483bc8d7ce037497594c0d4f83b237b27a94cb8 (patch)
tree1ea4a80d11bb166ebee010e2e5fda5076737ffd8 /src/xmpp
parent1c62d7fda8d644b3f8c6bceefc99d1730026a057 (diff)
downloadprofani-tty-6483bc8d7ce037497594c0d4f83b237b27a94cb8.tar.gz
Removed string allocation in stanza when joining room
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/stanza.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c
index 5364e579..8d5d85f2 100644
--- a/src/xmpp/stanza.c
+++ b/src/xmpp/stanza.c
@@ -363,7 +363,7 @@ stanza_create_room_join_presence(xmpp_ctx_t * const ctx,
         xmpp_stanza_t *pass = xmpp_stanza_new(ctx);
         xmpp_stanza_set_name(pass, "password");
         xmpp_stanza_t *text = xmpp_stanza_new(ctx);
-        xmpp_stanza_set_text(text, strdup(passwd));
+        xmpp_stanza_set_text(text, passwd);
         xmpp_stanza_add_child(pass, text);
         xmpp_stanza_add_child(x, pass);
         xmpp_stanza_release(text);