memalloc icon indicating copy to clipboard operation
memalloc copied to clipboard

Update memalloc.c

Open ReinierMaas opened this issue 7 years ago • 1 comments

Calling malloc from realloc with a size of 0 will return NULL. Remove call to malloc in realloc.

ReinierMaas avatar Oct 10 '18 11:10 ReinierMaas

I think you are wrong, if we have a invoke "realloc(NULL, sizeof(int));",this should be equivalent to malloc(sizeof(int)).

mooaccel avatar Dec 30 '19 13:12 mooaccel