PROV: check for memory allocation failure in digest _dupctx.