From 258a0ec8734de09f2ef3fcd612d14b8af9811914 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 15 Jun 2014 21:23:21 +0100 Subject: [PATCH] Fix memleak in wins_new --- src/ui/windows.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/windows.c b/src/ui/windows.c index 6f9a6a8e..c2edb9e1 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -239,6 +239,7 @@ wins_new(const char * const from, win_type_t type) int cols = getmaxx(stdscr); ProfWin *new = win_create(from, cols, type); g_hash_table_insert(windows, GINT_TO_POINTER(result), new); + g_list_free(keys); return new; }