torrentd

simple torrent daemon
git clone git@git.2f30.org/torrentd.git
Log | Files | Refs | LICENSE

commit 13547eadfee608bbc89d4608f62960bfef0e9d49
parent 4f352f07c82223e1d9ef917457488eb56eea447b
Author: sin <sin@2f30.org>
Date:   Sat, 19 Dec 2015 11:29:05 +0000

Fix segfault

Diffstat:
Mtorrent.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/torrent.c b/torrent.c @@ -217,7 +217,7 @@ err3: j = t->announcers[i].len; while (j--) free(t->announcers[i].urls[j]); - free(&(t->announcers[i])); + free(t->announcers[i].urls); } free(t->announcers); while (t->nfiles--) @@ -246,7 +246,7 @@ unloadtorrent(struct torrent *t) j = t->announcers[i].len; while (j--) free(t->announcers[i].urls[j]); - free(&(t->announcers[i])); + free(t->announcers[i].urls); } free(t->announcers);