This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
{Dos,}Glob.xs: Skip freeing during global destruction
authorFather Chrysostomos <sprout@cpan.org>
Thu, 13 Dec 2012 02:09:57 +0000 (18:09 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 13 Dec 2012 02:09:57 +0000 (18:09 -0800)
commitb8bafbdcb2701902921ab5b57da3bdff2a01fbea
treef5c3df283648dc296c0e0e2ee21865da31861c59
parenta1ba7ec6b0cd830be362a1f8b7d37214011a16ad
{Dos,}Glob.xs: Skip freeing during global destruction

See ticket #116064.

File::Glob and ::DosGlob free data associated with a calling op when
that op is freed.

During global destruction, there is no need to do that, as it will be
freed anyway.

Also, during sv_clean_all dMY_CXT can cause us to read freed memory.
ext/File-DosGlob/DosGlob.xs
ext/File-Glob/Glob.xs