]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: don't decref an object we don't own
authorBert Vermeulen <redacted>
Mon, 16 Jan 2012 04:01:05 +0000 (05:01 +0100)
committerBert Vermeulen <redacted>
Mon, 16 Jan 2012 04:01:05 +0000 (05:01 +0100)
util.c

diff --git a/util.c b/util.c
index 51b7cd685c4a36d6505b79c0a839e14002fc71b9..7e2b82cbad13ed1d0b043a0490391cee2648f76f 100644 (file)
--- 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);