about summary refs log tree commit diff stats
path: root/src/jid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jid.c')
-rw-r--r--src/jid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jid.c b/src/jid.c
index 172ca5b9..4eb05e87 100644
--- a/src/jid.c
+++ b/src/jid.c
@@ -91,6 +91,7 @@ jid_create(const gchar * const str)
         char *barejidraw = g_utf8_substring(trimmed, 0, g_utf8_pointer_to_offset(trimmed, slashp));
         result->barejid = g_utf8_strdown(barejidraw, -1);
         result->fulljid = g_strdup(trimmed);
+        g_free(barejidraw);
     } else {
         result->domainpart = g_strdup(domain_start);
         result->barejid = g_utf8_strdown(trimmed, -1);