mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-06 19:44:57 +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;
|
return res;
|
||||||
|
|
||||||
error_free:
|
error_free:
|
||||||
|
g_dir_close(dir);
|
||||||
girara_list_free(res);
|
girara_list_free(res);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue