We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1362242 commit 076e914Copy full SHA for 076e914
1 file changed
source/module.c
@@ -89,8 +89,9 @@ static int s_py_logger_log(
89
thread_name_str ? PyUnicode_FromString(aws_string_c_str(thread_name_str)) : Py_NewRef(Py_None);
90
91
PyObject *result = PyObject_CallFunction(
92
- impl->callback, "(is#iss)", (int)log_level, buf, (Py_ssize_t)len, (int)subject, subject_name, py_thread_name);
+ impl->callback, "(is#isO)", (int)log_level, buf, (Py_ssize_t)len, (int)subject, subject_name, py_thread_name);
93
Py_XDECREF(result);
94
+ Py_DECREF(py_thread_name);
95
if (PyErr_Occurred()) {
96
PyErr_WriteUnraisable(PyErr_Occurred());
97
PyGILState_Release(state);
0 commit comments