Re: [PATCH] Fix double-free error on non-GNU systems.

2012-01-28 Thread Ludovic Courtès
Hello! "Chris K. Jester-Young" skribis: > * libguile/i18n.c (scm_make_locale): Null out c_locale_name after it's > freed, so it doesn't get freed again. While this only has effect if > USE_GNU_LOCALE_API is unset, the nulling out happens in both cases, > to be consistent and robust. How d

[PATCH] Fix double-free error on non-GNU systems.

2012-01-27 Thread Chris K. Jester-Young
* libguile/i18n.c (scm_make_locale): Null out c_locale_name after it's freed, so it doesn't get freed again. While this only has effect if USE_GNU_LOCALE_API is unset, the nulling out happens in both cases, to be consistent and robust. (scm_nl_langinfo): Free c_result in all switch cases, i