summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-25 13:51:55 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-25 13:51:55 +0000
commitc3db7d9213b09a5852dab00368488f63a7625b9e (patch)
tree0674d0ac7ff66e8cf9a9d4d9ffa46d81a0108bc9 /op.c
parent62daffd9ffe64f0215996dadf71d6e1f53bf6cd8 (diff)
downloadperl-c3db7d9213b09a5852dab00368488f63a7625b9e.tar.gz
Plug a memory leak in newCONSTSUB
p4raw-id: //depot/perl@29107
Diffstat (limited to 'op.c')
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index 66d37349c0..5b0c3fc31f 100644
--- a/op.c
+++ b/op.c
@@ -5453,6 +5453,7 @@ Perl_newCONSTSUB(pTHX_ HV *stash, const char *name, SV *sv)
cv = newXS_flags(name, const_sv_xsub, file, "", XS_DYNAMIC_FILENAME);
CvXSUBANY(cv).any_ptr = sv;
CvCONST_on(cv);
+ Safefree(file);
#ifdef USE_ITHREADS
if (stash)