memalloc
memalloc copied to clipboard
BUG: call to realloc(ptr, size) with zero size and valid ptr should call free(ptr)
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).