Module: kamailio
Branch: 5.1
Commit: f1c3c3748a709c6c7cd1a6ff43a3d23ef97c1771
URL: 
https://github.com/kamailio/kamailio/commit/f1c3c3748a709c6c7cd1a6ff43a3d23ef97c1771

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

jsonrpcs: fix double free crash

(cherry picked from commit 9dc5cbaa4f078adee0a061885965494a9364e5d0)

---

Modified: src/modules/jsonrpcs/jsonrpcs_mod.c

---

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

---

diff --git a/src/modules/jsonrpcs/jsonrpcs_mod.c 
b/src/modules/jsonrpcs/jsonrpcs_mod.c
index ca614d55b6..178d0c3598 100644
--- a/src/modules/jsonrpcs/jsonrpcs_mod.c
+++ b/src/modules/jsonrpcs/jsonrpcs_mod.c
@@ -1299,7 +1299,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