]> Savannah Git Hosting - gnulib.git/commit
localename-tests: memory allocation fixes
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Mar 2016 05:44:58 +0000 (22:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Mar 2016 05:45:39 +0000 (22:45 -0700)
commit77313df97daf963cd14515a54a4244b0fbb87371
treebe50fc8b1e9f7337652724fbe57d4490d8453abf
parent841c4fa800b4c5c930c3350e5a9a164b204a79c8
localename-tests: memory allocation fixes

* tests/test-localename.c (test_locale_name)
(test_locale_name_thread): Don't call freelocale on a locale
that was the base of a successful newlocale, as that
results in a double free.  Problem reported by Assaf Gordon.
(test_locale_name_thread): Free saved names after use, to pacify
gcc -fsanitize=address.
ChangeLog
tests/test-localename.c