[#EP|1]fixed the memory leak issue

[#EP|1]fixed the memory leak issue test