Skip to content
Snippets Groups Projects
Verified Commit f60461cb authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Use drop_in_place for pthread_attr_destroy.

parent b4600182
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,7 @@ impl Default for RlctAttr {
#[no_mangle]
pub unsafe extern "C" fn pthread_attr_destroy(attr: *mut pthread_attr_t) -> c_int {
let _attr = &mut *attr.cast::<RlctAttr>();
// No-op
core::ptr::drop_in_place(attr);
0
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment