From: Matthieu Moy Date: Mon, 07 Feb 2011 18:48:02 GMT Subject: Re: [PATCH/RFC] commit: fix memory-leak Message-ID: In-Reply-To: <1297104044-4684-1-git-send-email-kusmabite@gmail.com> Erik Faye-Lund writes: > At the same time, this fixes a problem with strict-POSIX getenv > implementations. POSIX says "The return value from getenv() may > point to static data which may be overwritten by subsequent calls > to getenv()", so duplicating the strings is a potential bug. ^ not ? -- Matthieu Moy http://www-verimag.imag.fr/~moy/