summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-16 05:01:05 +0100
committerBert Vermeulen <bert@biot.com>2012-01-16 05:01:05 +0100
commit7b14cee1e2b43738a13108180dee73a08cbde87b (patch)
treecca594c61ed0b0ad69a6589997c3db46a5981379 /util.c
parentc49750787d045582dc08419b1312770a57fb845f (diff)
downloadlibsigrokdecode-7b14cee1e2b43738a13108180dee73a08cbde87b.tar.gz
libsigrokdecode-7b14cee1e2b43738a13108180dee73a08cbde87b.zip
srd: don't decref an object we don't own
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 0 insertions, 2 deletions
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);