summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-09 02:38:51 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-09 02:38:51 +0200
commitb939fdff17225ec1eb24aad816f8a2018a9d4079 (patch)
tree418aaa965d68eb5c761e8466856976d2b446d9f7
parent287e2788a726732e5f29eb3f5f4fe9d68fac4d05 (diff)
downloadlibsigrokdecode-b939fdff17225ec1eb24aad816f8a2018a9d4079.tar.gz
libsigrokdecode-b939fdff17225ec1eb24aad816f8a2018a9d4079.zip
type_decoder.c: Drop incorrect Py_DECREF() calls.
-rw-r--r--type_decoder.c6
1 files changed, 0 insertions, 6 deletions
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;