Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc::free() should expect a mutable pointer #11899

Closed
ghost opened this issue Jan 29, 2014 · 1 comment
Closed

libc::free() should expect a mutable pointer #11899

ghost opened this issue Jan 29, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 29, 2014

unsafe { free(malloc(1024)) }; doesn't compile.

@lilyball
Copy link
Contributor

This was fixed last week in 802d41f. Current master documents it as fn free(p: *mut c_void). Please update to latest master and try again.

flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 16, 2023
Do not check twice whether `qpath` is a `QPath::TypeRelative` variant

This is a style fix: the outer `if` check was useless.

changelog: none
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

No branches or pull requests

1 participant