]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Wed, 25 Aug 2021 13:57:54 +0000 (15:57 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Aug 2021 13:57:54 +0000 (15:57 +0200)
Modules/_sqlite/connection.c

index 1bc045523a252e9c52518e600cc481e368241b58..19d30d24d7f2e761a0ed597d452c94437adf4704 100644 (file)
@@ -1807,6 +1807,7 @@ pysqlite_connection_exit_impl(pysqlite_Connection *self, PyObject *exc_type,
                 _PyErr_ChainExceptions(exc, val, tb);
             }
             else {
+                Py_DECREF(result);
                 PyErr_Restore(exc, val, tb);
             }
         }