mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-22 08:02:08 +02:00
Use sv_mortalcopy()
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user