]> granicus.if.org Git - python/commit
bpo-30860: Fix a refleak. (#3506)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 12 Sep 2017 00:59:22 +0000 (17:59 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 12 Sep 2017 00:59:22 +0000 (17:59 -0700)
commit8728018624f257c7cfe44014742ae46134047f49
treed3465549106d04472cb05f70b317f20dd7fc77f6
parentba6d5d1defd7a281c8c8804e4b4cfd7370886236
bpo-30860: Fix a refleak. (#3506)

* Drop warnoptions from PyInterpreterState.

* Drop xoptions from PyInterpreterState.

* Don't set warnoptions and _xoptions again.

* Decref after adding to sys.__dict__.

* Drop an unused macro.

* Check sys.xoptions *before* we delete it.
Include/object.h
Include/pystate.h
Objects/object.c
Python/pylifecycle.c
Python/pystate.c
Python/pythonrun.c
Python/sysmodule.c