This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Leaked string in failure path.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 7 May 2014 13:22:16 +0000 (09:22 -0400)
committerSteffen Mueller <smueller@cpan.org>
Wed, 28 May 2014 17:27:21 +0000 (19:27 +0200)
commit0ac78434bf60027f078daa1108d6c7bcec1ad6e4
tree080e5810565725efda4fc8b1b4765fe81a9f063e
parentc5e9a8e7dadb9fc0aed0209af0d2dd2fcce6e64a
Leaked string in failure path.

Fix for Coverity perl5 CID 29058: Resource leak
(RESOURCE_LEAK) leaked_storage: Variable codeset going out of scope leaks the
storage it points to.

The savepv-ed codeset was not freed in failure path.
(The save_input_locale is freed just few lines later.)
locale.c