mirror of
https://github.com/corda/corda.git
synced 2025-02-05 02:29:20 +00:00
abort if allocation fails in heap.cpp's allocate
This commit is contained in:
parent
8a88c6ee3c
commit
45a2469672
@ -1746,7 +1746,10 @@ tryAllocate(Context* c, unsigned size)
|
||||
void*
|
||||
allocate(Context* c, unsigned size)
|
||||
{
|
||||
return allocate(c, size, false);
|
||||
void* p = allocate(c, size, false);
|
||||
expect(c->system, p);
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user