Fix memory leak on error

This commit is contained in:
Sebastian Ramacher 2017-01-24 23:59:18 +01:00
parent 7c5ec27314
commit 0263a7fa84

View file

@ -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;
}