Module: kamailio
Branch: master
Commit: 9f6331e0614599dd9dcdc1e362efad5bf228b0c4
URL:
https://github.com/kamailio/kamailio/commit/9f6331e0614599dd9dcdc1e362efad5…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-04-15T12:04:24+02:00
app_python: fix SR_KEMIP_DICT case in return_xval
introduced at 82279ebd3a634911277e48523a56f93473baca2c
---
Modified: src/modules/app_python/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9f6331e0614599dd9dcdc1e362efad5…
Patch:
https://github.com/kamailio/kamailio/commit/9f6331e0614599dd9dcdc1e362efad5…
---
diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c
index 5d1489e201..5320b02155 100644
--- a/src/modules/app_python/apy_kemi.c
+++ b/src/modules/app_python/apy_kemi.c
@@ -187,6 +187,8 @@ PyObject *sr_kemi_apy_return_xval(sr_kemi_t *ket, sr_kemi_xval_t *rx)
return sr_apy_kemi_return_none();
case SR_KEMIP_DICT:
LM_ERR("unsupported return type: map\n");
+ sr_kemi_xval_free(rx);
+ return sr_apy_kemi_return_none();
case SR_KEMIP_XVAL:
/* unknown content - return false */
return sr_kemi_apy_return_false();