--- tools/isotest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/isotest.c b/tools/isotest.c index 2cac0e49c..0ced19a9e 100644 --- a/tools/isotest.c +++ b/tools/isotest.c @@ -973,6 +973,8 @@ static void send_mode(char *filename, char *peer, int i, bool repeat) } do_send(sk, fd, peer, repeat); + if (fd >= 0) + close(fd); } static void reconnect_mode(char *peer) -- 2.34.1