summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-10-28 22:01:11 +0100
committerFather Chrysostomos <sprout@cpan.org>2010-10-28 17:51:44 -0700
commit3987a177937fb7957caa003cdf4c6dee1bb97f71 (patch)
treead6d7e97944a83eb44ed9b79043c206c3dd1c585 /scope.c
parent691135482762ce9dc9654f3848979dfe881cceb5 (diff)
downloadperl-3987a177937fb7957caa003cdf4c6dee1bb97f71.tar.gz
add SAVEFREECOPHH()
Add the facility for the save stack to free (decrement the refcount of) a COPHH*.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 9c1831cfcc..eb464f91da 100644
--- a/scope.c
+++ b/scope.c
@@ -867,6 +867,10 @@ Perl_leave_scope(pTHX_ I32 base)
ptr = SSPOPPTR;
SvREFCNT_dec(MUTABLE_SV(ptr));
break;
+ case SAVEt_FREECOPHH:
+ ptr = SSPOPPTR;
+ cophh_free((COPHH *)ptr);
+ break;
case SAVEt_MORTALIZESV:
ptr = SSPOPPTR;
sv_2mortal(MUTABLE_SV(ptr));