Skip to content

Commit 7b5d84e

Browse files
committed
DECREF properly
Calling tp_dealloc worked most of the time ... but is not the right way
1 parent fe0852b commit 7b5d84e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6479,7 +6479,7 @@ Connection_fts5_tokenizer(PyObject *self_, PyObject *const *fast_args, Py_ssize_
64796479
SET_EXC(rc, self->db);
64806480
AddTraceBackHere(__FILE__, __LINE__, "Connection.fts5_tokenizer_v2.xCreate", "{s:s,s:i,s:O}", "name", name,
64816481
"len(args)", argc, "args", args_as_tuple);
6482-
APSWFTS5TokenizerType.tp_dealloc((PyObject *)pytok);
6482+
Py_DECREF(pytok);
64836483
goto error;
64846484
}
64856485
Py_XDECREF(tmptuple);

0 commit comments

Comments
 (0)