From 5d1d5597d953b5a4a44938ee295aa3386d84e799 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 15 May 2018 22:29:24 +0200 Subject: util.c: Add two missing PyGILState_Release() calls. --- util.c | 4 ++++ 1 file changed, 4 insertions(+) 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: -- cgit v1.2.3-70-g09d2