Fixed memory leak in heap_test + allocation error which overrided the data in the performance comparison.