diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java index cce42fc51..fd28d0ec4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java @@ -185,11 +185,11 @@ public class NameRevCommand extends GitCommand> { } setCallable(false); - walk.release(); return result; } catch (IOException e) { - walk.reset(); throw new JGitInternalException(e.getMessage(), e); + } finally { + walk.close(); } }