projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7ad382f
)
properly free temporaries created by threads
Gurusamy Sarathy [Thu, 26 Nov 1998 09:04:44 +0000 (09:04 +0000)]
p4raw-id: //depot/perl@2300
ext/Thread/Thread.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/Thread/Thread.xs
b/ext/Thread/Thread.xs
index
fb9aba9
..
4ca76ad
100644
(file)
--- a/
ext/Thread/Thread.xs
+++ b/
ext/Thread/Thread.xs
@@
-114,6
+114,7
@@
threadstart(void *arg)
thr, SvPEEK(TOPs)));
sv = POPs;
+ SAVETMPS;
PUTBACK;
perl_call_sv(sv, G_ARRAY|G_EVAL);
SPAGAIN;
@@
-138,6
+139,7
@@
threadstart(void *arg)
for (i = 1; i <= retval; i++, SP++)
sv_setsv(*av_fetch(av, i, TRUE), SvREFCNT_inc(*SP));
}
+ FREETMPS;
finishoff:
#if 0