Skip to content
Permalink
Browse files

evapi: free the faked msg clone used for dispatcher event route

  • Loading branch information...
miconda committed Aug 15, 2019
1 parent 897f58f commit d36a4b00c6becd42cfcec4fc7eb398371e1cc812
Showing with 4 additions and 0 deletions.
  1. +4 −0 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;
}

0 comments on commit d36a4b0

Please sign in to comment.
You can’t perform that action at this time.