This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Fix leak
authorKarl Williamson <khw@cpan.org>
Sat, 25 Apr 2020 15:28:51 +0000 (09:28 -0600)
committerSawyer X <xsawyerx@cpan.org>
Sun, 24 May 2020 19:02:49 +0000 (22:02 +0300)
commite89ef0f1ec6b80efc851176a79596e9847e49ede
treecb97cde709b0d0e888ea3b44b7d9c94092c907db
parenta4fa5cf561af44daede4a1338373b5bb82e8052c
regcomp.c: Fix leak

This leak is the result of my misplacing the frees in an inner block
which isn't always executed after space is allocated; instead of the
next outer where the free will get done.

This fixes # 17729
regcomp.c