summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2017-09-12 00:59:22 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-09-12 00:59:22 (GMT)
commit8728018624f257c7cfe44014742ae46134047f49 (patch)
treed3465549106d04472cb05f70b317f20dd7fc77f6 /Python/pystate.c
parentba6d5d1defd7a281c8c8804e4b4cfd7370886236 (diff)
downloadcpython-8728018624f257c7cfe44014742ae46134047f49.zip
cpython-8728018624f257c7cfe44014742ae46134047f49.tar.gz
cpython-8728018624f257c7cfe44014742ae46134047f49.tar.bz2
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.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index be012d7..0804842 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -96,8 +96,6 @@ PyInterpreterState_New(void)
interp->builtins_copy = NULL;
interp->tstate_head = NULL;
interp->check_interval = 100;
- interp->warnoptions = NULL;
- interp->xoptions = NULL;
interp->num_threads = 0;
interp->pythread_stacksize = 0;
interp->codec_search_path = NULL;