Skip to content
Browse files

Fixed memory/filehandle leak in with-git-revisions.

  The revwalk in libgit2 was never freed. One of the consequences
  is that pack files which are opened are never freed.
  Which in consequence can lead to an error indicating that
  no files can be opened anymore.
  • Loading branch information...
1 parent 3dedbeb commit e2ebc0d88f452e88cddc5a2951fc907563ca0f06 @woudshoo woudshoo committed May 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 cl-git.lisp
View
5 cl-git.lisp
@@ -826,4 +826,7 @@ special call to stop iteration."
(progn ,@body)
(progn (git-commit-close ,commit))))
(revision-walker))))))
- (revision-walker)))))))
+ (unwind-protect
+ (revision-walker)
+ (%git-revwalk-free revwalker))))))))
+

0 comments on commit e2ebc0d

Please sign in to comment.
Something went wrong with that request. Please try again.