Skip to content

Commit 3468d6c

Browse files
author
Erlend E. Aasland
committed
bpo-27334: Fix ref. leak
1 parent 3978e28 commit 3468d6c

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
@@ -1893,6 +1893,7 @@ pysqlite_connection_exit_impl(pysqlite_Connection *self, PyObject *exc_type,
18931893
_PyErr_ChainExceptions(exc, val, tb);
18941894
}
18951895
else {
1896+
Py_DECREF(result);
18961897
PyErr_Restore(exc, val, tb);
18971898
}
18981899
}

0 commit comments

Comments
 (0)