Commit 059aca1a authored by Nick Thomas's avatar Nick Thomas

Merge branch 'sh-cleanup-pages-worker' into 'master'

Free open file descriptors and libgit2 buffers in UpdatePagesService

See merge request gitlab-org/gitlab-ce!18099
parents 3bfc8761 cc82abbd
...@@ -178,6 +178,9 @@ module Projects ...@@ -178,6 +178,9 @@ module Projects
def latest_sha def latest_sha
project.commit(build.ref).try(:sha).to_s project.commit(build.ref).try(:sha).to_s
ensure
# Close any file descriptors that were opened and free libgit2 buffers
project.cleanup
end end
def sha def sha
......
---
title: Free open file descriptors and libgit2 buffers in UpdatePagesService
merge_request:
author:
type: performance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment