[sr-dev] git:master:3df9647e: app_python3: fix missing GIL release in an error path

AnthonyA ascanio.alba7 at gmail.com
Tue Feb 27 00:41:56 CET 2018


Module: kamailio
Branch: master
Commit: 3df9647e5751d70509ea3616039ddeb4b5f709cb
URL: https://github.com/kamailio/kamailio/commit/3df9647e5751d70509ea3616039ddeb4b5f709cb

Author: AnthonyA <ascanio.alba7 at gmail.com>
Committer: AnthonyA <ascanio.alba7 at gmail.com>
Date: 2018-02-27T07:37:26+08:00

app_python3: fix missing GIL release in an error path

---

Modified: src/modules/app_python3/app_python_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3df9647e5751d70509ea3616039ddeb4b5f709cb.diff
Patch: https://github.com/kamailio/kamailio/commit/3df9647e5751d70509ea3616039ddeb4b5f709cb.patch

---

diff --git a/src/modules/app_python3/app_python_mod.c b/src/modules/app_python3/app_python_mod.c
index ada2bab474..1b7f880896 100644
--- a/src/modules/app_python3/app_python_mod.c
+++ b/src/modules/app_python3/app_python_mod.c
@@ -321,6 +321,7 @@ int apy_reload_script(void)
 
         if(apy_init_script(_apy_process_rank)<0) {
                 LM_ERR("failed to init script\n");
+                PY_GIL_RELEASE
                 return -1;
         }
 	PY_GIL_RELEASE




More information about the sr-dev mailing list