From: syokensyo Date: Wed, 12 Nov 2025 06:57:57 +0000 (+0800) Subject: fincore: close the ftsp to prevent fd leak X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a031019cffb125d570c7730c843a9cd8b8282a8;p=thirdparty%2Futil-linux.git fincore: close the ftsp to prevent fd leak --- diff --git a/misc-utils/fincore.c b/misc-utils/fincore.c index c297c1045..bfe4cd03d 100644 --- a/misc-utils/fincore.c +++ b/misc-utils/fincore.c @@ -610,6 +610,7 @@ int main(int argc, char ** argv) rc |= fincore_name(&ctl, ent->fts_accpath, ent->fts_path, ent->fts_statp); } } + fts_close(fts); } #endif } else {