Fix a memory leak in one of the test unit. Silent coverity warning CID 1095912