mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Plug memory leak.
This commit is contained in:
parent
bd2983caf3
commit
19030a08fb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue