Browse Source

fulfil the promise of actually freeing the free list

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 13 years ago
parent
commit
1160c5c0ad
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      daemon/bencode.c

+ 4
- 0
daemon/bencode.c View File

@ -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