time-rs / time

The most used Rust library for date and time handling.
https://time-rs.github.io
Apache License 2.0
1.06k stars 261 forks source link

local-offset feature is leaking memory on Apple platforms #651

Closed aw-cf closed 5 months ago

aw-cf commented 5 months ago

This report is mainly an FYI to let you know about an issue in one of the dependencies used for the local-offset feature.

This call to num_threads::is_single_threaded() is leaking memory on macOS. https://github.com/time-rs/time/blob/be932d86ca64b2725b03271cd3c66834be0ee8d0/time/src/sys/local_offset_at/unix.rs#L144

https://github.com/jhpratt/num_threads/issues/16 has details on the issue and was introduced with version 0.1.4.

jhpratt commented 5 months ago

Not a bug here. I'm the maintainer of both crates.

aw-cf commented 5 months ago

@jhpratt thanks, I wasn't aware you're a maintainer here as well 😉