Skip to content

Commit 0c038e9

Browse files
author
Erlend E. Aasland
committed
bpo-27334: Fix ref. leak
1 parent 303d132 commit 0c038e9

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
@@ -1797,6 +1797,7 @@ pysqlite_connection_exit(pysqlite_Connection* self, PyObject* args)
17971797
_PyErr_ChainExceptions(exc, val, tb);
17981798
}
17991799
else {
1800+
Py_DECREF(result);
18001801
PyErr_Restore(exc, val, tb);
18011802
}
18021803
}

0 commit comments

Comments
 (0)