From 89b76400c8560ea5a3fd6c77cdb5782b9eb029d3 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Wed, 24 Jun 2015 20:42:20 +0000 Subject: [PATCH] jid: Fixed memory leak in jid_create() --- src/jid.c | 1 + 1 file changed, 1 insertion(+) 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);