baseline.c: using calloc instead of realloc

it's better to always call calloc instead of
realloc memory regions.