util.c: Add two missing PyGILState_Release() calls.
authorUwe Hermann <uwe@hermann-uwe.de>
Tue, 15 May 2018 20:29:24 +0000 (22:29 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Tue, 15 May 2018 20:30:35 +0000 (22:30 +0200)
util.c

diff --git a/util.c b/util.c
index 430a7fb5e5c5bff8800ae7fd711425d276cc20bc..7c09f6d70d6b298c9af013bbbc2f5ea9adda9d6f 100644 (file)
--- 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: