[DF-4571] Fix memory leak.