Commit 54892c4b authored by Barry Warsaw's avatar Barry Warsaw

_PySys_Init(): Nailed small memory leak. The stringobject created for

sys.version was missing a Py_XDECREF().
parent da452bf6
......@@ -400,6 +400,7 @@ _PySys_Init()
Py_XDECREF(syserr);
PyDict_SetItemString(sysdict, "version",
v = PyString_FromString(Py_GetVersion()));
Py_XDECREF(v);
PyDict_SetItemString(sysdict, "hexversion",
v = PyInt_FromLong(PY_VERSION_HEX));
Py_XDECREF(v);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment