core: Close subdir when finished scanning

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-02-09 17:25:52 -05:00
parent 99598165ea
commit ab90d89092

View File

@@ -130,6 +130,7 @@ consume_scan(const char *dir_path, struct cav_state *state, DIR *subdir)
}
consume_scan(buf, state, subdir);
closedir(subdir);
break;
default:
++state->file_count;