diff --git a/src/system/runtime_loader/heap.cpp b/src/system/runtime_loader/heap.cpp index 8cd57abf54..1c31616704 100644 --- a/src/system/runtime_loader/heap.cpp +++ b/src/system/runtime_loader/heap.cpp @@ -202,7 +202,7 @@ grow_heap(size_t bytes) { // align the area size to an 32768 bytes boundary bytes = (bytes + 32767) & ~32767; - return add_area(bytes); + return add_area(bytes + sizeof(size_t)); }