summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-16 07:06:16 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-16 07:06:16 +0000
commit50a25f5b3f6c81747a40fdda68c9ad6bf32980bc (patch)
treeb84946f42e1e294c3b31957318daa50c18db6441 /pp_ctl.c
parent4137585d161068477223a004b005a7b78ff03d8e (diff)
downloadperl-50a25f5b3f6c81747a40fdda68c9ad6bf32980bc.tar.gz
Correctly reference count the hints hash
p4raw-id: //depot/perl@33322
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index af0866155b..1dcca0bd2f 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3564,7 +3564,10 @@ PP(pp_require)
SAVEHINTS();
PL_hints = 0;
- PL_compiling.cop_hints_hash = NULL;
+ if (PL_compiling.cop_hints_hash) {
+ Perl_refcounted_he_free(aTHX_ PL_compiling.cop_hints_hash);
+ PL_compiling.cop_hints_hash = NULL;
+ }
SAVECOMPILEWARNINGS();
if (PL_dowarn & G_WARN_ALL_ON)