fulfil the promise of actually freeing the free list

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 13 years ago
parent 337167faf7
commit 1160c5c0ad

@ -112,8 +112,12 @@ alloc:
}
void bencode_buffer_free(bencode_buffer_t *buf) {
struct __bencode_free_list *fl;
struct __bencode_buffer_piece *piece, *next;
for (fl = buf->free_list; fl; fl = fl->next)
BENCODE_FREE(fl->ptr);
for (piece = buf->pieces; piece; piece = next) {
next = piece->next;
BENCODE_FREE(piece);

Loading…
Cancel
Save