[ASan] fix one more memory leak in test case