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

Function free_rtpe_nodes

modules/rtpengine/rtpengine.c:2062–2077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2060}
2061
2062static void free_rtpe_nodes(struct rtpe_set *list)
2063{
2064 struct rtpe_node * crt_rtpp, *last_rtpp;
2065
2066 for(crt_rtpp = list->rn_first; crt_rtpp != NULL; ){
2067
2068 if(crt_rtpp->rn_url.s)
2069 shm_free(crt_rtpp->rn_url.s);
2070
2071 last_rtpp = crt_rtpp;
2072 crt_rtpp = last_rtpp->rn_next;
2073 shm_free(last_rtpp);
2074 }
2075 list->rn_first = NULL;
2076 list->rtpe_node_count = 0;
2077}
2078
2079/* finds the set based upon ID and frees it from list */
2080static void free_rtpe_set(int id_set)

Callers 3

mi_reload_rtpenginesFunction · 0.85
free_rtpe_setFunction · 0.85
free_rtpe_setsFunction · 0.85

Calls 1

shm_freeFunction · 0.85

Tested by

no test coverage detected