From: Victor Grishchenko Date: Thu, 4 Feb 2010 20:40:57 +0000 (+0100) Subject: leak hunt X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=54a4f1517c52eb024d01f9bf16aa39f5ea12c967;p=swift-upb.git leak hunt --- 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