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:
62daffd
)
Plug a memory leak in newCONSTSUB
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 25 Oct 2006 13:51:55 +0000
(13:51 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 25 Oct 2006 13:51:55 +0000
(13:51 +0000)
p4raw-id: //depot/perl@29107
op.c
patch
|
blob
|
history
diff --git
a/op.c
b/op.c
index
66d3734
..
5b0c3fc
100644
(file)
--- 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)