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

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

Karl Williamson via perl5-changes
November 20, 2022 04:20
[Perl/perl5] 2d0710: locale.c: Don't Safefree temps
Message ID:
  Branch: refs/heads/blead
  Commit: 2d0710deb09d8141e10a6e3a8d21f3d7f02f1523
  Author: Karl Williamson <>
  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
<>, not in github Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About