Stefan Holderbach 1dd861b10f
Close find handle in ls windows unsafe code (#15314)
While inspecting the Windows specific code of `ls` for #15311 I stumbled
upon an unrelated issue in the alternate metadata gathering on Windows
(added by #5703).

The handle created by performing `FindFirstFileW` was never closed,
leading to a potential leak. Fixed by running `FindClose` as soon as the
operation succeeds.

https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findfirstfilew#remarks
2025-03-16 16:33:36 +01:00
..
2025-02-28 19:36:39 +01:00
2024-12-03 15:21:09 -06:00
2025-01-28 16:03:31 -06:00
2025-01-02 06:26:46 -06:00
2025-02-28 19:36:39 +01:00
2025-01-28 16:03:31 -06:00