Kaydet (Commit) 34ef64fe authored tarafından Pablo Galindo's avatar Pablo Galindo Kaydeden (comit) Victor Stinner

bpo-36447, bpo-36447: Fix refleak in _PySys_InitMain() (GH-12586)

Fix refleak in sysmodule.c when calling SET_SYS_FROM_STRING_BORROW.
üst 5ac27a50
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment