replaced malloc and realloc

I replaced malloc for GC_MALLOC.
And I replaced realloc for GC_REALLOC.