From 0263a7fa84668a03b738f7890d3307896159d60e Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 24 Jan 2017 23:59:18 +0100 Subject: [PATCH] Fix memory leak on error --- zathura/completion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zathura/completion.c b/zathura/completion.c index d41c10a..42d71dd 100644 --- a/zathura/completion.c +++ b/zathura/completion.c @@ -115,6 +115,7 @@ list_files(zathura_t* zathura, const char* current_path, const char* current_fil return res; error_free: + g_dir_close(dir); girara_list_free(res); return NULL; }