--- CBOR-XS/XS.xs 2016/04/24 20:08:41 1.54 +++ CBOR-XS/XS.xs 2016/11/25 06:13:16 1.55 @@ -944,14 +944,16 @@ case CBOR_TAG_STRINGREF_NAMESPACE: { - ENTER; SAVETMPS; + // do nmot use SAVETMPS/FREETMPS, as these will + // erase mortalised caches, e.g. "shareable" + ENTER; SAVESPTR (dec->stringref); dec->stringref = (AV *)sv_2mortal ((SV *)newAV ()); sv = decode_sv (dec); - FREETMPS; LEAVE; + LEAVE; } break;