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

Function bencode_buffer_free

modules/rtpengine/bencode.c:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void bencode_buffer_free(bencode_buffer_t *buf) {
157 struct __bencode_free_list *fl;
158 struct __bencode_buffer_piece *piece, *next;
159
160 for (fl = buf->free_list; fl; fl = fl->next)
161 fl->func(fl->ptr);
162
163 for (piece = buf->pieces; piece; piece = next) {
164 next = piece->next;
165 BENCODE_FREE(piece);
166 }
167}
168
169static bencode_item_t *__bencode_item_alloc(bencode_buffer_t *buf, unsigned int payload) {
170 bencode_item_t *ret;

Callers 15

rtpe_stats_freeFunction · 0.85
rtpe_function_callFunction · 0.85
rtpe_function_call_okFunction · 0.85
rtpe_testFunction · 0.85
rtpe_function_call_asyncFunction · 0.85
pv_get_rtpstat_fFunction · 0.85
pv_get_rtpquery_fFunction · 0.85
rtpengine_playmedia_fFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_bracket_listsFunction · 0.68
test_bracket_dictsFunction · 0.68
test_bracket_nestedFunction · 0.68
test_bracket_securityFunction · 0.68
test_bracket_escapesFunction · 0.68