[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked
eryksun
report at bugs.python.org
Mon Oct 5 18:34:55 EDT 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue4926>
_______________________________________
More information about the Python-bugs-list
mailing list