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:30:25 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2020-04-06 14:29:21 +0300
commit42b6d78a703f33b3b38c1b973660b9abfbb801cd (patch)
treee7a6c97cf5b6c5e3e57e88be52892576e8d6dfc8 /src/ui
parentba291a03f4cd44f8aa7a95d83bc94190477d1e5f (diff)
downloadprofani-tty-42b6d78a703f33b3b38c1b973660b9abfbb801cd.tar.gz
Fix multiple memory leaks related to rosterwin_roster()
There are multiple paths which lead to rosterwin_roster(). The function
doesn't free list returned by wins_get_private_chats().
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/rosterwin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c
index 1d295053..9615db22 100644
--- a/src/ui/rosterwin.c
+++ b/src/ui/rosterwin.c
@@ -172,6 +172,7 @@ rosterwin_roster(void)
             _rosterwin_private_chats(layout, orphaned_privchats);
         }
         prefs_free_string(privpref);
+        g_list_free(privchats);
         g_list_free(orphaned_privchats);
     }