The thread-amount crate versions prior to 0.2.2 have resource leaks on Windows and macOS platforms when querying thread counts. On Windows, handles returned by CreateToolhelp32Snapshot are not closed, causing handle leaks. On macOS/iOS, memory allocated by task_threads is not deallocated, causing memory leaks. Long-running applications using this crate may crash due to resource exhaustion. Version 0.2.2 fixes these issues by properly releasing OS resources.