memalloc
memalloc copied to clipboard
Update memalloc.c
Calling malloc from realloc with a size of 0 will return NULL. Remove call to malloc in realloc.
I think you are wrong, if we have a invoke "realloc(NULL, sizeof(int));",this should be equivalent to malloc(sizeof(int)).