This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don’t leak the /(?[])/ parsing stack on error
authorFather Chrysostomos <sprout@cpan.org>
Thu, 6 Jun 2013 04:40:24 +0000 (21:40 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 6 Jun 2013 04:40:24 +0000 (21:40 -0700)
commit1e4f088863436a8019c7d864691903ffdafeefda
tree3148b3a86e6bb3d966f709f93e946b3d07b0616a
parentdc6876f2369ec6d815f194eaa9fa09a85b3e7531
Don’t leak the /(?[])/ parsing stack on error

Instead of creating the parsing stack and then freeing it after pars-
ing the (?[...]) construct (leaking it whenever one of the various
errors scattered throughout the parsing code occurs), mortalise it to
begin with and let the mortals stack take care of it.
regcomp.c
t/op/svleak.t