]> sigrok.org Git - libsigrokdecode.git/commitdiff
type_decoder.c: Drop incorrect Py_DECREF() calls.
authorUwe Hermann <redacted>
Wed, 9 May 2018 00:38:51 +0000 (02:38 +0200)
committerUwe Hermann <redacted>
Wed, 9 May 2018 00:38:51 +0000 (02:38 +0200)
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;