]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123290: Fix decref in _curses update_lines_cols() (#124767)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sun, 29 Sep 2024 15:02:43 +0000 (17:02 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 15:02:43 +0000 (15:02 +0000)
Modules/_cursesmodule.c

index c9ee5687c2b5d9db325f6a065b9c19fd984262d0..631fc23dcdb121ae1de7b12e83a7d060de670a05 100644 (file)
@@ -4036,7 +4036,7 @@ update_lines_cols(PyObject *private_module)
 
 error:
     Py_XDECREF(o);
-    Py_DECREF(exposed_module);
+    Py_XDECREF(exposed_module);
     return 0;
 }