about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-15 21:23:21 +0100
committerJames Booth <boothj5@gmail.com>2014-06-15 21:23:21 +0100
commit258a0ec8734de09f2ef3fcd612d14b8af9811914 (patch)
tree5c8d2c81f855f8e471ce252b688f9c44734df213
parentc9274a38b29fe07d635b07d7c8bb8652fc2cf6f3 (diff)
downloadprofani-tty-258a0ec8734de09f2ef3fcd612d14b8af9811914.tar.gz
Fix memleak in wins_new
-rw-r--r--src/ui/windows.c1
1 files changed, 1 insertions, 0 deletions
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;
 }