MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / repl_expr_free

Function repl_expr_free

modules/dialplan/dp_repl.c:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#define MAX_REPLACE_WITH 10
30
31void repl_expr_free(struct subst_expr *se)
32{
33 if(!se)
34 return;
35
36 if(se->replacement.s){
37 shm_free(se->replacement.s);
38 se->replacement.s = 0;
39 }
40
41 shm_free(se);
42 se = 0;
43}
44
45
46struct subst_expr* repl_exp_parse(str subst)

Callers 3

build_ruleFunction · 0.85
destroy_ruleFunction · 0.85
repl_exp_parseFunction · 0.85

Calls 1

shm_freeFunction · 0.85

Tested by

no test coverage detected