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

Function bencode_buffer_destroy_add

modules/rtpengine/bencode.c:717–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717void bencode_buffer_destroy_add(bencode_buffer_t *buf, free_func_t func, void *p) {
718 struct __bencode_free_list *li;
719
720 if (!p)
721 return;
722 li = __bencode_alloc(buf, sizeof(*li));
723 if (!li)
724 return;
725 li->ptr = p;
726 li->func = func;
727 li->next = buf->free_list;
728 buf->free_list = li;
729}

Callers 1

Calls 1

__bencode_allocFunction · 0.85

Tested by

no test coverage detected