X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/b001a0d149ed99df18916796f3a72b2c888b94d8..a59fa18fc69fd714097da0fbefe02d42727641f6:/ext/XS-APItest/APItest.xs diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs index 181b1f6..1b8ec3f 100644 --- 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 *