Comment 30 for bug 982684

Revision history for this message
In , Steve Langasek (vorlon) wrote :

> From my reading of the manual page (haven't looked at the source),
> it looks to me like you need to free() the individual elements too.

Not according to the manpage for putenv(), which states that the string passed to putenv() becomes part of the environment directly ("The string pointed to by string becomes part of the environment, so altering the string changes the environment").