memalloc icon indicating copy to clipboard operation
memalloc copied to clipboard

BUG: call to realloc(ptr, size) with zero size and valid ptr should call free(ptr)

Open onlyeffect opened this issue 4 years ago • 0 comments

From Linux manual of realloc:

If ptr is NULL, then the call is equivalent to malloc(size), for all values of size; if size is equal to zero, and ptr is not NULL, then the call is equivalent to free(ptr).

onlyeffect avatar Aug 11 '21 15:08 onlyeffect