From 8728018624f257c7cfe44014742ae46134047f49 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 11 Sep 2017 17:59:22 -0700 Subject: 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. --- Python/pystate.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'Python/pystate.c') diff --git a/Python/pystate.c b/Python/pystate.c index be012d7d46..0804842861 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; -- cgit v1.2.1