loader: Fix heap_realloc function to return newly allocated memory

LunarXchange issue #162
1 file changed