[DF-4152] Fixed memory leak.