]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/commitdiff
Correct the stack after calling the hook
authorVincent Pit <vince@profvince.com>
Mon, 16 Mar 2009 18:08:22 +0000 (19:08 +0100)
committerVincent Pit <vince@profvince.com>
Mon, 16 Mar 2009 18:08:22 +0000 (19:08 +0100)
Cleanup.xs

index 6c80606ea8554e846898e5b84fcf6a4ebe824d7d..83ec8b461ef9a892d6808fbfd8dacb7e96d280dc 100644 (file)
@@ -33,7 +33,7 @@ STATIC void tc_callback(pTHX_ void *ud) {
 
   call_pv(__PACKAGE__ "::_CLEANUP", G_VOID);
 
-  SPAGAIN;
+  PUTBACK;
 
   FREETMPS;
   LEAVE;