Unverified Kaydet (Commit) 72ff7b4c authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka Kaydeden (comit) GitHub

bpo-35451: Fix reference counting for sys.warnoptions and sys._xoptions. (GH-11063)

üst f46eccd0
......@@ -1774,7 +1774,6 @@ get_warnoptions(void)
* call optional for embedding applications, thus making this
* reachable again.
*/
Py_XDECREF(warnoptions);
warnoptions = PyList_New(0);
if (warnoptions == NULL)
return NULL;
......@@ -1864,7 +1863,6 @@ get_xoptions(void)
* call optional for embedding applications, thus making this
* reachable again.
*/
Py_XDECREF(xoptions);
xoptions = PyDict_New();
if (xoptions == NULL)
return NULL;
......
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