diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-15 22:29:24 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-15 22:30:35 +0200 |
commit | 5d1d5597d953b5a4a44938ee295aa3386d84e799 (patch) | |
tree | 09cf6204977edf149e1d57036b510d77d226393f /util.c | |
parent | ef10cea73bd05b44a213b76c6c4abb9b543cd46d (diff) | |
download | libsigrokdecode-5d1d5597d953b5a4a44938ee295aa3386d84e799.tar.gz libsigrokdecode-5d1d5597d953b5a4a44938ee295aa3386d84e799.zip |
util.c: Add two missing PyGILState_Release() calls.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |