From 36751e2f4547b7d96c72bdad43427a51baa458da Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 9 Aug 2020 15:21:57 +0100 Subject: [PATCH] Fixed heap size not being incremented --- photon/libc/sys/magenta/heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/photon/libc/sys/magenta/heap.c b/photon/libc/sys/magenta/heap.c index d82d77f..a3bf783 100644 --- a/photon/libc/sys/magenta/heap.c +++ b/photon/libc/sys/magenta/heap.c @@ -36,6 +36,7 @@ void *__extend_heap(size_t sz) uintptr_t ret = heap_end; mx_segment_set_size(heap_segment, heap_sz + sz); mx_segment_map(heap_segment, 0, heap_sz + sz, &start); + heap_sz += sz; heap_end += sz; return (void *)ret; }