ENG-6280 fix dr memory leak