Remove debug_assert
This commit is contained in:
parent
c86e0985f9
commit
db1d003de1
1 changed files with 1 additions and 4 deletions
|
@ -223,10 +223,7 @@ unsafe impl GlobalAlloc for System {
|
||||||
|
|
||||||
// SAFETY: `heap` is a non-null handle returned by `GetProcessHeap`,
|
// SAFETY: `heap` is a non-null handle returned by `GetProcessHeap`,
|
||||||
// `block` is a pointer to the start of an allocated block.
|
// `block` is a pointer to the start of an allocated block.
|
||||||
unsafe {
|
unsafe { HeapFree(heap, 0, block as c::LPVOID) };
|
||||||
let err = HeapFree(heap, 0, block as c::LPVOID);
|
|
||||||
debug_assert!(err != 0, "Failed to free heap memory: {}", c::GetLastError());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue