summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorCharles Lane <lane@DUPHY4.Physics.Drexel.Edu>2001-01-10 08:23:02 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-10 18:42:08 +0000
commitc18672e56e209860eb30da12fa97fe99ecaaed8e (patch)
treef1f4351bc633e667cfde52449ee45b63b78853c7 /ext
parentcdc1c7bd1700970cfc0a75f42fe12b4fc95b591a (diff)
downloadperl-c18672e56e209860eb30da12fa97fe99ecaaed8e.tar.gz
Opcode.XS, fix memory leak
Message-Id: <010110132245.8129a@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@8390
Diffstat (limited to 'ext')
-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);