about summary refs log tree commit diff stats
path: root/src/xmpp/jid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/jid.c')
-rw-r--r--src/xmpp/jid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xmpp/jid.c b/src/xmpp/jid.c
index 745f069d..51c710f1 100644
--- a/src/xmpp/jid.c
+++ b/src/xmpp/jid.c
@@ -216,10 +216,9 @@ jid_fulljid_or_barejid(Jid* jid)
 char*
 jid_random_resource(void)
 {
-    char* rand = get_random_string(4);
+    auto_char char* rand = get_random_string(4);
 
     gchar* result = g_strdup_printf("profanity.%s", rand);
-    free(rand);
 
     return result;
 }