diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-25 13:51:55 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-25 13:51:55 +0000 |
commit | c3db7d9213b09a5852dab00368488f63a7625b9e (patch) | |
tree | 0674d0ac7ff66e8cf9a9d4d9ffa46d81a0108bc9 /op.c | |
parent | 62daffd9ffe64f0215996dadf71d6e1f53bf6cd8 (diff) | |
download | perl-c3db7d9213b09a5852dab00368488f63a7625b9e.tar.gz |
Plug a memory leak in newCONSTSUB
p4raw-id: //depot/perl@29107
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |