From: Bert Vermeulen Date: Mon, 16 Jan 2012 04:01:05 +0000 (+0100) Subject: srd: don't decref an object we don't own X-Git-Tag: libsigrokdecode-0.1.0~128 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7b14cee1e2b43738a13108180dee73a08cbde87b;p=libsigrokdecode.git srd: don't decref an object we don't own --- diff --git a/util.c b/util.c index 51b7cd6..7e2b82c 100644 --- a/util.c +++ b/util.c @@ -99,8 +99,6 @@ int py_str_as_str(PyObject *py_str, char **outstr) } err_out: - if (py_str) - Py_XDECREF(py_str); if (py_encstr) Py_XDECREF(py_encstr);