develooper Front page | perl.perl5.changes | Postings from November 2022

[Perl/perl5] 2d0710: locale.c: Don't Safefree temps

From:
Karl Williamson via perl5-changes
Date:
November 20, 2022 04:20
Subject:
[Perl/perl5] 2d0710: locale.c: Don't Safefree temps
Message ID:
Perl/perl5/push/refs/heads/blead/5b3c3c-2d0710@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 2d0710deb09d8141e10a6e3a8d21f3d7f02f1523
      https://github.com/Perl/perl5/commit/2d0710deb09d8141e10a6e3a8d21f3d7f02f1523
  Author: Karl Williamson <khw@cpan.org>
  Date:   2022-11-19 (Sat, 19 Nov 2022)

  Changed paths:
    M locale.c

  Log Message:
  -----------
  locale.c: Don't Safefree temps

Commit 22392ba2f8a changed the querylocale_foo macros to return a
mortalized copy instead of having to free things explicitly.  This was
done because the various code paths are complicated, and I was noticing
various leaks that would require a bunch of #ifdef's to fix.

That commit meant that all the existing free's of the results needed to
be removed.  This one was overlooked at the time.  Reported in
<f47046d6-7e35-301d-10f-9160b34ca2b6@uwe-dueffert.de>, not in github





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