From f12161f190e5203930aaf209079305f7f8b690d6 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 7 Oct 2020 22:50:24 +0200 Subject: [PATCH] Fix memleak in cons_alert() Close https://github.com/profanity-im/profanity/issues/1427 --- src/ui/console.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/console.c b/src/ui/console.c index a9966bcd..8e06b290 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2410,6 +2410,8 @@ cons_alert(ProfWin* alert_origin_window) if (!item) { alert_list = g_list_append(alert_list, win_name); } + + free(win_name); } }