Fix check for virtual dir in vrt_closedir to avoid calling closedir() with a virtual dir

This commit is contained in:
Maschell 2022-10-08 15:02:27 +02:00
parent 81707c4a30
commit f5d6c3d508

View File

@ -402,7 +402,7 @@ int vrt_closedir(DIR_P *iter) {
if (!iter) return -1;
if (iter->dir) {
if (iter->virt_root) {
if (iter->virt_root || iter->virtual_fs || iter->virtual_fs_vol) {
free(iter->dir);
iter->dir = NULL;
} else {