tFree a forgotten malloc() - libeech - bittorrent library
HTML git clone git://z3bra.org/libeech.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit b5d392cf923e35b7d2dee33ca323447b4004f270
DIR parent 51e138421357f7f58a511bb0eb9656aa9ed1674c
HTML Author: z3bra <contactatz3bradotorg>
Date: Wed, 11 Jul 2018 08:09:27 +0200
Free a forgotten malloc()
Diffstat:
M libeech.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
DIR diff --git a/libeech.c b/libeech.c
t@@ -947,6 +947,9 @@ netloop(struct torrent *t, int timeout)
pfds.p[i]->state |= (CONNECTED|SEEDING|LEECHING|AMCHOKING);
}
+ free(pfds.p);
+ free(pfds.fds);
+
return npeer;
}