]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_decoder.c
type_decoder.c: Drop incorrect Py_DECREF() calls.
[libsigrokdecode.git] / type_decoder.c
index aa92c3b22490d9e68813661bbd80c7e7575e89e2..16e25a7b92f8885dd22f11fb344cb30b9cd98d2c 100644 (file)
@@ -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;