diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-03-27 12:43:47 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-03-27 12:43:47 (GMT) |
commit | 34ef64fe5947bd7e1b075c785fc1125c4e600cd4 (patch) | |
tree | f63535e2f045a86bf92e4f82d295cedcc921896b /Python | |
parent | 5ac27a50ff2b42216746fedc0522a92c53089bb3 (diff) | |
download | cpython-34ef64fe5947bd7e1b075c785fc1125c4e600cd4.zip cpython-34ef64fe5947bd7e1b075c785fc1125c4e600cd4.tar.gz cpython-34ef64fe5947bd7e1b075c785fc1125c4e600cd4.tar.bz2 |
bpo-36447, bpo-36447: Fix refleak in _PySys_InitMain() (GH-12586)
Fix refleak in sysmodule.c when calling SET_SYS_FROM_STRING_BORROW.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 1af11c4..3de94e8 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 |