]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fincore: close the ftsp to prevent fd leak
authorsyokensyo <syokensyo@hotmail.com>
Wed, 12 Nov 2025 06:57:57 +0000 (14:57 +0800)
committershaojiansong <shaojiansong@kylinos.cn>
Wed, 12 Nov 2025 10:50:08 +0000 (18:50 +0800)
misc-utils/fincore.c

index c297c10457331fbc66e0ce89d0e262e1eb839c1b..bfe4cd03df4f6578e48a1ca631ab2603c9817136 100644 (file)
@@ -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 {