_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
|
else
|
||||||
value = "little";
|
value = "little";
|
||||||
PyDict_SetItemString(sysdict, "byteorder",
|
PyDict_SetItemString(sysdict, "byteorder",
|
||||||
PyString_FromString(value));
|
v = PyString_FromString(value));
|
||||||
|
Py_XDECREF(v);
|
||||||
}
|
}
|
||||||
#ifdef MS_COREDLL
|
#ifdef MS_COREDLL
|
||||||
PyDict_SetItemString(sysdict, "dllhandle",
|
PyDict_SetItemString(sysdict, "dllhandle",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user