From 54a4f1517c52eb024d01f9bf16aa39f5ea12c967 Mon Sep 17 00:00:00 2001 From: Victor Grishchenko Date: Thu, 4 Feb 2010 21:40:57 +0100 Subject: [PATCH] leak hunt --- swift.cpp | 3 +-- transfer.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swift.cpp b/swift.cpp index ee9f13c..a97c33c 100644 --- a/swift.cpp +++ b/swift.cpp @@ -127,8 +127,7 @@ int swift::Open (const char* filename, const Sha1Hash& hash) { void swift::Close (int fd) { - // FIXME delete all channels - if (fd>FileTransfer::files.size() && FileTransfer::files[fd]) + if (fd