From: Uwe Hermann Date: Wed, 9 May 2018 00:38:51 +0000 (+0200) Subject: type_decoder.c: Drop incorrect Py_DECREF() calls. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b939fdff17225ec1eb24aad816f8a2018a9d4079;p=libsigrokdecode.git type_decoder.c: Drop incorrect Py_DECREF() calls. --- diff --git a/type_decoder.c b/type_decoder.c index aa92c3b..16e25a7 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -369,17 +369,11 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args) break; } - if (py_data) - Py_DECREF(py_data); - PyGILState_Release(gstate); Py_RETURN_NONE; err: - if (py_data) - Py_DECREF(py_data); - PyGILState_Release(gstate); return NULL;