Skip to content

Commit

Permalink
bpo-35451: Fix reference counting for sys.warnoptions and sys._xoptio…
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Dec 10, 2018
1 parent f46eccd commit 72ff7b4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 72ff7b4

Please sign in to comment.