_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:
Barry Warsaw 2000-08-16 23:03:57 +00:00
parent 239548f37d
commit f2581c97f2
1 changed files with 2 additions and 1 deletions

View File

@ -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",