summaryrefslogtreecommitdiff
path: root/ext/Opcode
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Opcode')
-rw-r--r--ext/Opcode/Opcode.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/Opcode/Opcode.xs b/ext/Opcode/Opcode.xs
index 04f7c3fa33..d437cd7a6a 100644
--- a/ext/Opcode/Opcode.xs
+++ b/ext/Opcode/Opcode.xs
@@ -271,6 +271,7 @@ PPCODE:
/* %INC must be clean for use/require in compartment */
save_hash(PL_incgv);
+ sv_free((SV*)GvHV(PL_incgv)); /* get rid of what save_hash gave us*/
GvHV(PL_incgv) = (HV*)SvREFCNT_inc(GvHV(gv_HVadd(gv_fetchpv("INC",TRUE,SVt_PVHV))));
PUSHMARK(SP);