Browse Source

Ensure that NameRevCommand.call() closes RevWalk

Change-Id: Icc35a81081759d664fe9e2b05e962ff3cd9aad92
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.1
Matthias Sohn 10 years ago
parent
commit
f434f29fd9
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java

4
org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java

@ -185,11 +185,11 @@ public class NameRevCommand extends GitCommand<Map<ObjectId, String>> {
} }
setCallable(false); setCallable(false);
walk.release();
return result; return result;
} catch (IOException e) { } catch (IOException e) {
walk.reset();
throw new JGitInternalException(e.getMessage(), e); throw new JGitInternalException(e.getMessage(), e);
} finally {
walk.close();
} }
} }

Loading…
Cancel
Save