| 715 | } |
| 716 | |
| 717 | void 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 | } |
no test coverage detected