Browse Source

Assert fix for realloc()

v2-maintenance
Sami Vaarala 3 years ago
parent
commit
0501583887
  1. 1
      src-input/duk_heap_memory.c

1
src-input/duk_heap_memory.c

@ -209,7 +209,6 @@ DUK_LOCAL DUK_NOINLINE_PERF DUK_COLD void *duk__heap_mem_realloc_slowpath(duk_he
duk_heap_mark_and_sweep(heap, flags);
DUK_ASSERT(newsize > 0);
res = heap->realloc_func(heap->heap_udata, ptr, newsize);
if (res != NULL || newsize == 0) {
DUK_D(DUK_DPRINT("duk_heap_mem_realloc() succeeded after gc (pass %ld), alloc size %ld",

Loading…
Cancel
Save