develooper Front page | perl.perl5.changes | Postings from May 2020

[Perl/perl5] e89ef0: regcomp.c: Fix leak

From:
Karl Williamson
Date:
May 24, 2020 19:03
Subject:
[Perl/perl5] e89ef0: regcomp.c: Fix leak
Message ID:
Perl/perl5/push/refs/heads/blead/a4fa5c-e89ef0@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: e89ef0f1ec6b80efc851176a79596e9847e49ede
      https://github.com/Perl/perl5/commit/e89ef0f1ec6b80efc851176a79596e9847e49ede
  Author: Karl Williamson <khw@cpan.org>
  Date:   2020-05-24 (Sun, 24 May 2020)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  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



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About