Module: kamailio
Branch: master
Commit: 9dc5cbaa4f078adee0a061885965494a9364e5d0
URL: 
https://github.com/kamailio/kamailio/commit/9dc5cbaa4f078adee0a061885965494a9364e5d0

Author: Federico Cabiddu <federico.cabi...@gmail.com>
Committer: Federico Cabiddu <federico.cabi...@gmail.com>
Date: 2019-02-07T09:23:01+01:00

jsonrpcs: fix double free crash

---

Modified: src/modules/jsonrpcs/jsonrpcs_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/9dc5cbaa4f078adee0a061885965494a9364e5d0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/9dc5cbaa4f078adee0a061885965494a9364e5d0.patch

---

diff --git a/src/modules/jsonrpcs/jsonrpcs_mod.c 
b/src/modules/jsonrpcs/jsonrpcs_mod.c
index 8049779e55..a6c5616561 100644
--- a/src/modules/jsonrpcs/jsonrpcs_mod.c
+++ b/src/modules/jsonrpcs/jsonrpcs_mod.c
@@ -1297,7 +1297,6 @@ static int jsonrpc_dispatch(sip_msg_t* msg, char* s1, 
char* s2)
        if (!ctx->reply_sent && !(ctx->flags&JSONRPC_DELAYED_REPLY_F)) {
                ret = jsonrpc_send(ctx);
        }
-       srjson_DeleteDoc(ctx->jreq);
        jsonrpc_clean_context(ctx);
        if (ret < 0) return -1;
        return 1;


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to