Skip to content

Commit

Permalink
Cleanly shut down the git library upon process exit
Browse files Browse the repository at this point in the history
This change allows the libgit2 library to clean up after itself. This
helps detect leaks.
  • Loading branch information
lhchavez committed Feb 17, 2019
1 parent 551f771 commit 030f118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/omegaup-gitserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ func (h *muxGitHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}

func main() {
defer git.Shutdown()

flag.Parse()

if *version {
Expand Down

0 comments on commit 030f118

Please sign in to comment.