eryksun added the comment:
AFAICT, on Windows using the posix_putenv_garbage dict is unnecessary. The
Windows C runtime creates a private copy of the string, so there's no need to
keep a reference. Moreover, since there's no unsetenv, deleting a variable is
accomplished by calling putenv with an empty value, e.g. putenv('foo', '').
This leaks an item in posix_putenv_garbage, which is left set as ('foo',
'foo=').
----------
nosy: +eryksun
versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.1, Python 3.2
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue4926>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com