This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: DTRT in av_store()
authorKarl Williamson <khw@cpan.org>
Wed, 20 Nov 2019 02:08:15 +0000 (19:08 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 20 Nov 2019 21:09:20 +0000 (14:09 -0700)
commit21c3fd9dd0a7a389c901af03acc1907666ee1870
tree82ceba14f6c4ad2e62266b6ead086322954801ba
parentdedd1cfb64ad71a1566a1256d67f1ad4416322d5
regcomp.c: DTRT in av_store()

We should be increasing the ref count in the scalars.  If those aren't
needed past the end of the function doing the av_store, their ref count
can be decremented there.

Otherwise, things are inconsistent, and error prone.
regcomp.c