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

Function bin_free_packet

bin_interface.c:534–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void bin_free_packet(bin_packet_t *packet)
535{
536 if (packet->buffer.s) {
537 if (packet->flags & BINFL_SYSMEM)
538 free(packet->buffer.s);
539 else
540 pkg_free(packet->buffer.s);
541 packet->buffer.s = NULL;
542 } else {
543 LM_INFO("atempting to free uninitialized binary packet\n");
544 }
545}
546
547int bin_get_buffer(bin_packet_t *packet, str *buffer)
548{

Callers 15

call_callbacksFunction · 0.85
replicate_pres_changeFunction · 0.85
replicate_lb_statusFunction · 0.85
pack_repl_presentityFunction · 0.85
handle_presentity_queryFunction · 0.85
srec_dlg_write_callbackFunction · 0.85
replicate_cache_insertFunction · 0.85
replicate_cache_removeFunction · 0.85
replicate_entity_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected