From 12417a984c59fcec246b060576b46e31f9a7d926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Sun, 29 Sep 2024 17:02:43 +0200 Subject: [PATCH] gh-123290: Fix decref in _curses update_lines_cols() (#124767) --- Modules/_cursesmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index c9ee5687c2b..631fc23dcdb 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -4036,7 +4036,7 @@ update_lines_cols(PyObject *private_module) error: Py_XDECREF(o); - Py_DECREF(exposed_module); + Py_XDECREF(exposed_module); return 0; }