Plug memory leak.

This commit is contained in:
Neil Schemenauer 2001-01-16 04:27:47 +00:00
parent bd2983caf3
commit 19030a08fb
1 changed files with 2 additions and 1 deletions

View File

@ -5578,6 +5578,7 @@ INITFUNC(void)
PyDict_SetItemString(d, "error", PyExc_OSError); PyDict_SetItemString(d, "error", PyExc_OSError);
#ifdef HAVE_PUTENV #ifdef HAVE_PUTENV
if (posix_putenv_garbage == NULL)
posix_putenv_garbage = PyDict_New(); posix_putenv_garbage = PyDict_New();
#endif #endif
} }