Plug memory leaks on UNMAP and XCOPY with invalid parameters.

MFC after:	1 week

(cherry picked from commit dc390f7f0fa24950cb6e51fb431c5538a330224f)