mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 01:42:54 +03:00
Remove debug_assert
This commit is contained in:
@@ -223,10 +223,7 @@ unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
|
||||
|
||||
// SAFETY: `heap` is a non-null handle returned by `GetProcessHeap`,
|
||||
// `block` is a pointer to the start of an allocated block.
|
||||
unsafe {
|
||||
let err = HeapFree(heap, 0, block as c::LPVOID);
|
||||
debug_assert!(err != 0, "Failed to free heap memory: {}", c::GetLastError());
|
||||
}
|
||||
unsafe { HeapFree(heap, 0, block as c::LPVOID) };
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user