test bench : fix for test bench failure, caused by redundant malloc.