8000 bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942) · python/cpython@a3c11ce · GitHub
[go: up one dir, main page]

Skip to content

Commit a3c11ce

Browse files
author
Erlend Egeberg Aasland
authored
bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942)
1 parent 15d50d7 commit a3c11ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_sqlite/connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,7 @@ pysqlite_connection_exit_impl(pysqlite_Connection *self, PyObject *exc_type,
18071807
_PyErr_ChainExceptions(exc, val, tb);
18081808
}
18091809
else {
1810+
Py_DECREF(result);
18101811
PyErr_Restore(exc, val, tb);
18111812
}
18121813
}

0 commit comments

Comments
 (0)
0