Remove code which attempted to free device managed memory