davidfstr/rdiscount — pull request #100 by davidfstr (2013-05-04 19:34:00+00:00)
Title: Copy result of setlocale(..., NULL)

...since it points to an internal buffer that is freed upon the subsequent setlocale(..., "C") call.

Bug discovered by @dbussink using Valgrind.