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

Function tmrec_expr_free

time_rec.c:2184–2203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2182
2183
2184void tmrec_expr_free(tmrec_expr *_trx)
2185{
2186 struct list_head *el, *next;
2187 tmrec_expr_t *exp, *trx = (tmrec_expr_t *)_trx;
2188 osips_free_t free_f;
2189
2190 if (!trx)
2191 return;
2192
2193 free_f = (trx->flags & PKG_ALLOC ?
2194 osips_pkg_free : osips_shm_free);
2195
2196 list_for_each_safe (el, next, &trx->operands) {
2197 exp = list_entry(el, tmrec_expr_t, list);
2198 tmrec_expr_free(exp);
2199 }
2200
2201 free_f(trx->tr.tz);
2202 free_f(trx);
2203}
2204
2205
2206int _tz_offset(const char *tz, time_t t)

Callers 5

tmrec_expr_parseFunction · 0.85
cmtrFunction · 0.85
destroy_ruleFunction · 0.85
free_rt_infoFunction · 0.85
dr_load_routing_infoFunction · 0.85

Calls 2

list_for_each_safeFunction · 0.85
list_entryClass · 0.50

Tested by 1

cmtrFunction · 0.68