projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5c03d3
)
Opcode.XS, fix memory leak
author
Charles Lane
<lane@DUPHY4.Physics.Drexel.Edu>
Wed, 10 Jan 2001 13:23:02 +0000
(08:23 -0500)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 10 Jan 2001 18:42:08 +0000
(18:42 +0000)
Message-Id: <
010110132245
.8129a@DUPHY4.Physics.Drexel.Edu>
p4raw-id: //depot/perl@8390
ext/Opcode/Opcode.xs
patch
|
blob
|
history
diff --git
a/ext/Opcode/Opcode.xs
b/ext/Opcode/Opcode.xs
index
04f7c3f
..
d437cd7
100644
(file)
--- 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);