]> git.saurik.com Git - apt.git/blobdiff - test/testextract.cc
* doc/external-dependency-solver-protocol.txt:
[apt.git] / test / testextract.cc
index 1c738aab99b4608f952ec9882b29fad69c2cf2cb..b790df618f7b27871125b0c0a687280989f4edbb 100644 (file)
@@ -71,9 +71,12 @@ bool Go(int argc,char *argv[])
               Itm.Type = pkgDirStream::Item::Directory;
 
            int Fd;
-           if (Extract.DoItem(Itm,Fd) == false)
+           if (Extract.DoItem(Itm,Fd) == false) {
+              fclose(F);
               return false;
-        }       
+           }
+        }
+        fclose(F);
       }
       else
         if (Deb.ExtractArchive(Extract) == false)