summaryrefslogtreecommitdiffstats
path: root/services/comments
diff options
context:
space:
mode:
Diffstat (limited to 'services/comments')
-rw-r--r--services/comments/comments.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/comments/comments.go b/services/comments/comments.go
index 1ae5e2743f..ba40bf582d 100644
--- a/services/comments/comments.go
+++ b/services/comments/comments.go
@@ -49,6 +49,7 @@ func CreateCodeComment(doer *models.User, repo *models.Repository, issue *models
if err != nil {
return nil, fmt.Errorf("OpenRepository: %v", err)
}
+ defer gitRepo.Close()
// FIXME validate treePath
// Get latest commit referencing the commented line