Module: kamailio
Branch: master
Commit: 4d51c674c5b9635b7f7d9ab39582752b856373d4
URL:
https://github.com/kamailio/kamailio/commit/4d51c674c5b9635b7f7d9ab39582752…
Author: Joey Golan <joey(a)synchapp.io>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-06-21T08:07:05+02:00
rtpengine: release json document object
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4d51c674c5b9635b7f7d9ab39582752…
Patch:
https://github.com/kamailio/kamailio/commit/4d51c674c5b9635b7f7d9ab39582752…
---
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 3de7b87599c..02fa3e5b66f 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -1452,6 +1452,8 @@ static int rtpengine_raise_dtmf_event(char *buffer, int len) {
goto error;
}
+ srjson_DestroyDoc(&jdoc);
+
return 0;
error:
@@ -2394,7 +2396,8 @@ static int child_init(int rank)
/* fork worker process */
mypid = fork_process(PROC_RPC, "RTPENGINE DTMF WORKER", 1);
if(mypid < 0) {
- LM_ERR("failed to fork RTPENGINE DTMF WORKER process %d\n", mypid);
+ LM_ERR("failed to fork RTPENGINE DTMF WORKER process %d\n",
+ mypid);
return -1;
} else if(mypid == 0) {
if(cfg_child_init())
@@ -2455,7 +2458,7 @@ static void mod_destroy(void)
rtpp_no_lock = NULL;
}
- if (!rtpp_set_list) {
+ if(!rtpp_set_list) {
return;
}