mirror of https://github.com/python/cpython
_PySys_Init(): Fix another Insure discovered memory leak; the PyString
created from the "big"/"little" constant needs to be decref'd.
This commit is contained in:
parent
239548f37d
commit
f2581c97f2
|
@ -469,7 +469,8 @@ _PySys_Init(void)
|
|||
else
|
||||
value = "little";
|
||||
PyDict_SetItemString(sysdict, "byteorder",
|
||||
PyString_FromString(value));
|
||||
v = PyString_FromString(value));
|
||||
Py_XDECREF(v);
|
||||
}
|
||||
#ifdef MS_COREDLL
|
||||
PyDict_SetItemString(sysdict, "dllhandle",
|
||||
|
|
Loading…
Reference in New Issue