diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mem.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -489,6 +489,12 @@ void *rt_realloc(void *rmem, rt_size_t newsize) { ((struct heap_mem *)&heap_ptr[mem2->next])->prev = ptr2; } + + if (mem2 < lfree) + { + /* the splited struct is now the lowest */ + lfree = mem2; + } plug_holes(mem2); |
