Skip to content

Commit 076e914

Browse files
committed
redefine types and decrement ref
1 parent 1362242 commit 076e914

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ static int s_py_logger_log(
8989
thread_name_str ? PyUnicode_FromString(aws_string_c_str(thread_name_str)) : Py_NewRef(Py_None);
9090

9191
PyObject *result = PyObject_CallFunction(
92-
impl->callback, "(is#iss)", (int)log_level, buf, (Py_ssize_t)len, (int)subject, subject_name, py_thread_name);
92+
impl->callback, "(is#isO)", (int)log_level, buf, (Py_ssize_t)len, (int)subject, subject_name, py_thread_name);
9393
Py_XDECREF(result);
94+
Py_DECREF(py_thread_name);
9495
if (PyErr_Occurred()) {
9596
PyErr_WriteUnraisable(PyErr_Occurred());
9697
PyGILState_Release(state);

0 commit comments

Comments
 (0)