This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make XS::APItest::establish_cleanup protect existing stacks
[perl5.git]
/
ext
/
XS-APItest
/
APItest.xs
diff --git
a/ext/XS-APItest/APItest.xs
b/ext/XS-APItest/APItest.xs
index
181b1f6
..
1b8ec3f
100644
(file)
--- a/
ext/XS-APItest/APItest.xs
+++ b/
ext/XS-APItest/APItest.xs
@@
-533,12
+533,14
@@
STATIC void
THX_run_cleanup(pTHX_ void *cleanup_code_ref)
{
dSP;
+ PUSHSTACK;
ENTER;
SAVETMPS;
PUSHMARK(SP);
call_sv((SV*)cleanup_code_ref, G_VOID|G_DISCARD);
FREETMPS;
LEAVE;
+ POPSTACK;
}
STATIC OP *