Skip to content

Conversation

@JRF63
Copy link
Contributor

@JRF63 JRF63 commented Feb 9, 2025

rustc and rust-analyzer issues a warning on the use of static mut globals hence the change to a RwLock.

The memory leak was from libc::malloc not being accompanied by a corresponding libc::free. There are multiple exit points (from the panics) so it's simpler to just RAII it with a Vec.

@jgarzik jgarzik merged commit 0c321b0 into rustcoreutils:main Feb 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants