[DF-31] fix memory leak