Module: kamailio Branch: 5.2 Commit: 9f4c8c37f50ce15e52ea64388d7aab46167e78cd URL: https://github.com/kamailio/kamailio/commit/9f4c8c37f50ce15e52ea64388d7aab46...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-08-20T10:22:59+02:00
evapi: free the faked msg clone used for dispatcher event route
(cherry picked from commit d36a4b00c6becd42cfcec4fc7eb398371e1cc812)
---
Modified: src/modules/evapi/evapi_dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/9f4c8c37f50ce15e52ea64388d7aab46... Patch: https://github.com/kamailio/kamailio/commit/9f4c8c37f50ce15e52ea64388d7aab46...
---
diff --git a/src/modules/evapi/evapi_dispatch.c b/src/modules/evapi/evapi_dispatch.c index ec56945b5e..e603753cec 100644 --- a/src/modules/evapi/evapi_dispatch.c +++ b/src/modules/evapi/evapi_dispatch.c @@ -37,6 +37,7 @@ #include "../../core/dprint.h" #include "../../core/ut.h" #include "../../core/cfg/cfg_struct.h" +#include "../../core/receive.h" #include "../../core/kemi.h" #include "../../core/fmsg.h"
@@ -170,6 +171,9 @@ int evapi_run_cfg_route(evapi_env_t *evenv, int rt, str *rtname) } set_route_type(backup_rt); evapi_set_msg_env(fmsg, NULL); + /* free the structure -- it is a clone of faked msg */ + free_sip_msg(fmsg); + ksr_msg_env_reset(); return 0; }