Panic in delete as well
This commit is contained in:
parent
22019ac6b2
commit
f8120e01c0
@ -382,20 +382,28 @@ void* operator new[](usize size)
|
||||
|
||||
void operator delete(void* p)
|
||||
{
|
||||
kfree(p);
|
||||
auto rc = kfree(p);
|
||||
if (rc.has_error()) { expect(false, rc.error_string()); }
|
||||
return rc.release_value();
|
||||
}
|
||||
|
||||
void operator delete[](void* p)
|
||||
{
|
||||
kfree(p);
|
||||
auto rc = kfree(p);
|
||||
if (rc.has_error()) { expect(false, rc.error_string()); }
|
||||
return rc.release_value();
|
||||
}
|
||||
|
||||
void operator delete(void* p, usize)
|
||||
{
|
||||
kfree(p);
|
||||
auto rc = kfree(p);
|
||||
if (rc.has_error()) { expect(false, rc.error_string()); }
|
||||
return rc.release_value();
|
||||
}
|
||||
|
||||
void operator delete[](void* p, usize)
|
||||
{
|
||||
kfree(p);
|
||||
auto rc = kfree(p);
|
||||
if (rc.has_error()) { expect(false, rc.error_string()); }
|
||||
return rc.release_value();
|
||||
}
|
Loading…
Reference in New Issue
Block a user