From 40bc9b361d655348b182af061adf2cc374f737b5 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Thu, 30 Aug 2018 15:48:41 +0200 Subject: properly free memory allocated for process_names and commands --- src/hotkey.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hotkey.c b/src/hotkey.c index 7b3008a..10d5f5e 100644 --- a/src/hotkey.c +++ b/src/hotkey.c @@ -197,10 +197,12 @@ void free_mode_map(struct table *mode_map) for (int i = 0; i < buf_len(hotkey->process_name); ++i) { free(hotkey->process_name[i]); } + buf_free(hotkey->process_name); for (int i = 0; i < buf_len(hotkey->command); ++i) { free(hotkey->command[i]); } + buf_free(hotkey->command); free(hotkey); next:; -- cgit v1.2.3