add tests for freeing memory with a reallocation of size zero

(0) -1000 -300 -100 -30 -10 -1 +1 +10 +30 tip

mercurial