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

Function pv_spec_free

pvar.c:5766–5775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5764}
5765
5766void pv_spec_free(pv_spec_t *spec)
5767{
5768 if(spec==0) return;
5769 /* TODO: free name if it is PV */
5770 if(spec->trans)
5771 free_transformation((trans_t*)spec->trans);
5772 if ((spec->pvp.pvv_flags & PV_PARAM_PVV_SHM) && spec->pvp.pvv.s)
5773 shm_free(spec->pvp.pvv.s);
5774 pkg_free(spec);
5775}
5776
5777int pv_spec_dbg(const pv_spec_p sp)
5778{

Callers 15

pv_parse_hdr_nameFunction · 0.85
pv_parse_avp_nameFunction · 0.85
pv_parse_indexFunction · 0.85
pv_parse_param_nameFunction · 0.85
pv_parse_return_valueFunction · 0.85
subst_expr_freeFunction · 0.85
tr_parse_nparamFunction · 0.85
tr_parse_sparamFunction · 0.85
free_tr_paramFunction · 0.85
msg_call_functionFunction · 0.85
pv_parse_shvar_nameFunction · 0.85

Calls 2

free_transformationFunction · 0.85
shm_freeFunction · 0.85

Tested by

no test coverage detected