diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 1af11c4ab97..3de94e8468b 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2635,6 +2635,7 @@ _PySys_InitMain(PyInterpreterState *interp) return -1; } SET_SYS_FROM_STRING_BORROW("_xoptions", xoptions); + Py_DECREF(xoptions); #undef COPY_LIST #undef SET_SYS_FROM_WSTR