From: Neil Schemenauer Date: Tue, 16 Jan 2001 04:27:47 +0000 (+0000) Subject: Plug memory leak. X-Git-Tag: v2.1a1~244 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19030a08fbfb8596a2a3db55737828b08b378cd4;p=thirdparty%2FPython%2Fcpython.git Plug memory leak. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index b57bc02e6f63..99e5864b2c7d 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 }