projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
136e045
)
In Perl_magic_clearsig(), only call LEAVE if we call ENTER.
Nicholas Clark [Wed, 20 May 2009 05:19:07 +0000 (07:19 +0200)]
(
2d4fcd5e8be8d83efa948a259c49b56fc6c27ee5
, reported and fixed by RT #20613,
would ENTER but not LEAVE when HAS_SIGPROCMASK was not defined.)
mg.c
patch
|
blob
|
blame
|
history
diff --git
a/mg.c
b/mg.c
index
f6b6d87
..
54679f8
100644
(file)
--- a/
mg.c
+++ b/
mg.c
@@
-1317,11
+1317,15
@@
Perl_magic_clearsig(pTHX_ SV *sv, MAGIC *mg)
if(PL_psig_ptr[i]) {
SV * const to_dec=PL_psig_ptr[i];
PL_psig_ptr[i]=0;
+#ifdef HAS_SIGPROCMASK
LEAVE;
+#endif
SvREFCNT_dec(to_dec);
}
+#ifdef HAS_SIGPROCMASK
else
LEAVE;
+#endif
}
}
return 0;