[dwrite] Replace rest of 'malloc/free's with 'new/delete' (#897)

1 file changed