https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239520
Bug ID: 239520 Summary: Possible memory leak in newlocale/uselocale Product: Base System Version: 12.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: b...@freebsd.org Reporter: a.shi...@itcons.net.ua Hello! Running the binary compiled from the simple code #include <locale.h> int main() { while (1) { locale_t n = newlocale(LC_TIME, "en_AU.UTF-8", (locale_t)0); locale_t old = uselocale(n); uselocale(old); freelocale(n); } } results to rapid memory leak. It was tested on 12.0-RELEASE/amd64, 11.2-RELEASE/amd64 and 9.3-RELEASE-p53/i386. First time the problem with memory leak was found with Perl 5.28 and Perl 5.30 on 12.0-RELEASE/amd64. The firt suspicion was about Perl, but further discussion came to this test C code. Discussion on rt.perl.org: https://rt.perl.org/Public/Bug/Display.html?id=134305 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"