[DF-5244] fix memory leak