realloc(NULL, size) is by definition malloc(size).
More realloc(NULL, size) == malloc(size)