Commit 0263a7fa authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix memory leak on error

parent 7c5ec273
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment