Use sv_mortalcopy()

This commit is contained in:
gfx 2010-09-15 14:21:44 +09:00
parent 07e68aa694
commit 7644555d6b

View File

@ -368,7 +368,7 @@ XS(xs_unpacker_data) {
} }
UNPACKER(ST(0), mp); UNPACKER(ST(0), mp);
ST(0) = sv_2mortal(newSVsv(template_data(mp))); ST(0) = sv_mortalcopy(template_data(mp));
XSRETURN(1); XSRETURN(1);
} }