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

Function do_free_rr

parser/parse_rr.c:183–197  ·  view source on GitHub ↗

* Free list of rrs * _r is head of the list */

Source from the content-addressed store, hash-verified

181 * _r is head of the list
182 */
183static inline void do_free_rr(rr_t** _r, int _shm)
184{
185 rr_t* ptr;
186
187 while(*_r) {
188 ptr = *_r;
189 *_r = (*_r)->next;
190 if (ptr->params) {
191 if (_shm) shm_free_params(ptr->params);
192 else free_params(ptr->params);
193 }
194 if (_shm) shm_free(ptr);
195 else pkg_free(ptr);
196 }
197}
198
199
200/*

Callers 2

free_rrFunction · 0.85
shm_free_rrFunction · 0.85

Calls 3

shm_free_paramsFunction · 0.85
free_paramsFunction · 0.85
shm_freeFunction · 0.85

Tested by

no test coverage detected