summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-15 22:29:24 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-15 22:30:35 +0200
commit5d1d5597d953b5a4a44938ee295aa3386d84e799 (patch)
tree09cf6204977edf149e1d57036b510d77d226393f /util.c
parentef10cea73bd05b44a213b76c6c4abb9b543cd46d (diff)
downloadlibsigrokdecode-5d1d5597d953b5a4a44938ee295aa3386d84e799.tar.gz
libsigrokdecode-5d1d5597d953b5a4a44938ee295aa3386d84e799.zip
util.c: Add two missing PyGILState_Release() calls.
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index 430a7fb..7c09f6d 100644
--- a/util.c
+++ b/util.c
@@ -281,6 +281,8 @@ SRD_PRIV int py_pydictitem_as_str(PyObject *py_obj, PyObject *py_key,
goto err;
}
+ PyGILState_Release(gstate);
+
return py_str_as_str(py_value, outstr);
err:
@@ -445,6 +447,8 @@ SRD_PRIV int py_strseq_to_char(PyObject *py_strseq, char ***out_strv)
}
*out_strv = strv;
+ PyGILState_Release(gstate);
+
return SRD_OK;
err_out: