Skip to content

Commit

Permalink
Fix a leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Nov 7, 2023
1 parent e8e8aa0 commit cfc007b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_sqlite/microprotocols.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pysqlite_microprotocols_adapt(pysqlite_state *state, PyObject *obj,
return NULL;
}
if (PyDict_GetItemRef(state->psyco_adapters, key, &adapter) < 0) {
Py_DECREF(key);
return NULL;
}
Py_DECREF(key);
Expand Down

0 comments on commit cfc007b

Please sign in to comment.