about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2020-04-06 13:29:36 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2020-04-06 13:29:36 +0300
commitba291a03f4cd44f8aa7a95d83bc94190477d1e5f (patch)
tree2364a09337ccd8728ee604f14d542adb7a48150b /src/ui
parenteb2165e0a4469a33d0ae2b3c7878b20dbb9d52c1 (diff)
downloadprofani-tty-ba291a03f4cd44f8aa7a95d83bc94190477d1e5f.tar.gz
Fix memory leak in cons_show_disco_info()
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 6b35cead..4683f699 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -751,7 +751,7 @@ cons_show_disco_info(const char *jid, GSList *identities, GSList *features)
                 identity_str = g_string_append(identity_str, identity->category);
             }
             cons_show(identity_str->str);
-            g_string_free(identity_str, FALSE);
+            g_string_free(identity_str, TRUE);
             identities = g_slist_next(identities);
         }