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

Function clean_head_cache

modules/drouting/drouting.c:1599–1609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1597}
1598
1599void clean_head_cache(struct head_cache *c)
1600{
1601 struct head_cache_socket *s, *old;
1602 free_rt_data(c->rdata, rpm_free_func);
1603 for (s = c->sockets; s; ) {
1604 old = s;
1605 s = s->next;
1606 rpm_free(old);
1607 }
1608 rpm_free(c);
1609}
1610
1611struct head_cache *add_head_cache(str *part)
1612{

Callers 1

update_cache_infoFunction · 0.85

Calls 2

free_rt_dataFunction · 0.85
rpm_freeFunction · 0.85

Tested by

no test coverage detected