On 31.03.2011 15:13, Mark Marshall wrote: > There's a (very unlikely) memory leak here. > (getenv_r() == -1 and errno != ERANGE) Thanks! Can't believe how I missed that. (Or how I missed it in my valgrind-based tests.)