| 532 | } |
| 533 | |
| 534 | void 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 | |
| 547 | int bin_get_buffer(bin_packet_t *packet, str *buffer) |
| 548 | { |
no outgoing calls
no test coverage detected