make sure to close the IndexInput used to read index version

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@606299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2007-12-21 20:31:48 +00:00
parent 7dfe984867
commit 0c6efd3dee
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ public class CheckIndex {
out.println("ERROR: could not read segment file version in directory"); out.println("ERROR: could not read segment file version in directory");
t.printStackTrace(out); t.printStackTrace(out);
return false; return false;
} finally {
if (input != null)
input.close();
} }
String sFormat = ""; String sFormat = "";