summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJirka Hruška <jirka@fud.cz>2010-09-01 11:18:43 +0100
committerDavid Mitchell <davem@iabyn.com>2010-09-01 12:24:44 +0100
commit57bb245860e35e488edc349867894087587a1af6 (patch)
treecf53e920d36a355de54675e0528b72c391136555 /perl.c
parent61e14cb44198449802cc50bc000890b1db9ba3f2 (diff)
downloadperl-57bb245860e35e488edc349867894087587a1af6.tar.gz
PL_my_cxt_list leaks
[perl #77352] PL_my_cxt_list was never freed
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 57be5d2367..7e135ca0b0 100644
--- a/perl.c
+++ b/perl.c
@@ -1071,6 +1071,10 @@ perl_destruct(pTHXx)
(long)cxstack_ix + 1);
}
+ /* the entries in this list are allocated via SV PVX's, so get freed
+ * in sv_clean_all */
+ Safefree(PL_my_cxt_list);
+
/* Now absolutely destruct everything, somehow or other, loops or no. */
/* the 2 is for PL_fdpid and PL_strtab */