The thread-amount crate versions prior to 0.2.2 contain resource leaks on Windows and macOS/iOS platforms when querying thread counts. On Windows, the function fails to close handles returned by CreateToolhelp32Snapshot, causing handle leaks. On macOS/iOS, memory allocated by task_threads is not deallocated, causing memory leaks. Long-running applications using this crate to periodically check thread counts may crash due to resource exhaustion. A fix is available in version 0.2.2.