diff --git a/src/reader.c b/src/reader.c index 5960995..aa2b3f3 100644 --- a/src/reader.c +++ b/src/reader.c @@ -80,6 +80,7 @@ static void *tryParentize(const redisReadTask *task, PyObject *obj) { PyObject *last_item = PyObject_CallMethod(parent, "popitem", NULL); PyObject *last_key = PyTuple_GetItem(last_item, 0); PyDict_SetItem(parent, last_key, obj); + Py_DECREF(obj); } break; default: