mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-29 22:54:55 +01:00
Fix memory leak on error
This commit is contained in:
parent
7c5ec27314
commit
0263a7fa84
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue