diff options
author | James Booth <boothj5@users.noreply.github.com> | 2015-06-24 22:00:02 +0100 |
---|---|---|
committer | James Booth <boothj5@users.noreply.github.com> | 2015-06-24 22:00:02 +0100 |
commit | 7f17fd2e48f037b3d74ec43d80c1a269b0c8f947 (patch) | |
tree | b06e013ea9fbbddf968408b681c3dd5e275be792 /src | |
parent | ae4c2781e19cdbecb57008ae7b9b33f4dbf810d8 (diff) | |
parent | 89b76400c8560ea5a3fd6c77cdb5782b9eb029d3 (diff) | |
download | profani-tty-7f17fd2e48f037b3d74ec43d80c1a269b0c8f947.tar.gz |
Merge pull request #583 from pasis/jid-memleak
Fixed memory leak in jid_create()
Diffstat (limited to 'src')
-rw-r--r-- | src/jid.c | 1 |
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); |