]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Plug memory leak.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Tue, 16 Jan 2001 04:27:47 +0000 (04:27 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Tue, 16 Jan 2001 04:27:47 +0000 (04:27 +0000)
Modules/posixmodule.c

index b57bc02e6f632a6bf0c8bcd3636c8b6d457d1ed3..99e5864b2c7dafc117816de04be6ce813cdc8f0a 100644 (file)
@@ -5578,6 +5578,7 @@ INITFUNC(void)
        PyDict_SetItemString(d, "error", PyExc_OSError);
 
 #ifdef HAVE_PUTENV
-       posix_putenv_garbage = PyDict_New();
+       if (posix_putenv_garbage == NULL)
+               posix_putenv_garbage = PyDict_New();
 #endif
 }