From ab90d89092c3bb86256af73bc2c44ee326fee395 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 9 Feb 2026 17:25:52 -0500 Subject: [PATCH] core: Close subdir when finished scanning Signed-off-by: Ian Moffett --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 9727b6a..c10bef9 100644 --- a/src/main.c +++ b/src/main.c @@ -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;