]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix SF bug #675259, os.environ leaks under FreeBSD and Mac OS X
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 7 Feb 2003 02:29:01 +0000 (02:29 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 7 Feb 2003 02:29:01 +0000 (02:29 +0000)
Even with the extra work to cleanup the env, *BSD still leaks.  Add a note.

Doc/lib/libos.tex

index 5a0df45ca2ba7e4657cb32345adfea9ef788c982..48620b44eeab380bf2e373a6cd5af5b7f65cb995 100644 (file)
@@ -93,7 +93,9 @@ platforms), and is equivalent to \code{getenv("HOME")} in C.
 If the platform supports the \function{putenv()} function, this
 mapping may be used to modify the environment as well as query the
 environment.  \function{putenv()} will be called automatically when
-the mapping is modified.
+the mapping is modified.  \note{On some platforms, including
+FreeBSD and Mac OS X, setting \code{environ} may cause memory leaks.
+Refer to the system documentation for putenv.}
 
 If \function{putenv()} is not provided, this mapping may be passed to
 the appropriate process-creation functions to cause child processes to 
@@ -182,6 +184,10 @@ started with \function{os.system()}, \function{popen()} or
 \function{fork()} and \function{execv()}.
 Availability: most flavors of \UNIX, Windows.
 
+\note{On some platforms, including FreeBSD and Mac OS X,
+setting \code{environ} may cause memory leaks.
+Refer to the system documentation for putenv.}
+
 When \function{putenv()} is
 supported, assignments to items in \code{os.environ} are automatically
 translated into corresponding calls to \function{putenv()}; however,