Re: [PATCH/RFC] commit: fix memory-leak
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Feb 7, 2011, 18:48 UTC
- Message-ID
- <vpqei7jfzq5.fsf@bauges.imag.fr>
- In-Reply-To
- <1297104044-4684-1-git-send-email-kusmabite@gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> 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/