From: Uwe Hermann Date: Tue, 15 May 2018 20:29:24 +0000 (+0200) Subject: util.c: Add two missing PyGILState_Release() calls. X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=5d1d5597d953b5a4a44938ee295aa3386d84e799;ds=sidebyside util.c: Add two missing PyGILState_Release() calls. --- 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: