This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b1558d
)
PL_defoutgv could be used after being freed
author
Dave Mitchell
<davem@fdisolutions.com>
Thu, 29 Sep 2005 22:57:44 +0000
(22:57 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Thu, 29 Sep 2005 22:57:44 +0000
(22:57 +0000)
Was giving "use of freed value" warnings in t/io/through.t
and t/io/crlf_through.t
p4raw-id: //depot/perl@25665
perl.c
patch
|
blob
|
blame
|
history
diff --git
a/perl.c
b/perl.c
index
fc0972c
..
caa58d3
100644
(file)
--- a/
perl.c
+++ b/
perl.c
@@
-739,6
+739,8
@@
perl_destruct(pTHXx)
*/
sv_clean_objs();
PL_sv_objcount = 0;
+ if (PL_defoutgv && !SvREFCNT(PL_defoutgv))
+ PL_defoutgv = Nullgv; /* may have been freed */
}
/* unhook hooks which will soon be, or use, destroyed data */