torrentd

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

commit bd3979b9d7b029d898e9718d19fa855bf191c5c4
parent eeff5cd86ab8f4a719fec00ab007ab486ff030d8
Author: sin <sin@2f30.org>
Date:   Fri, 18 Dec 2015 15:03:51 +0000

Free ben structure if decoding fails

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

diff --git a/ben.c b/ben.c @@ -170,6 +170,8 @@ bdecode(char *s, char *e, struct ben **b) *b = NULL; if (!setjmp(savesp)) return parse(s, e, b); + bfree(*b); + *b = NULL; return NULL; }