Module: kamailio Branch: master Commit: d36a4b00c6becd42cfcec4fc7eb398371e1cc812 URL: https://github.com/kamailio/kamailio/commit/d36a4b00c6becd42cfcec4fc7eb39837...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-08-15T08:33:49+02:00
evapi: free the faked msg clone used for dispatcher event route
---
Modified: src/modules/evapi/evapi_dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/d36a4b00c6becd42cfcec4fc7eb39837... Patch: https://github.com/kamailio/kamailio/commit/d36a4b00c6becd42cfcec4fc7eb39837...
---
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; }