From 32dcaefafa6039e8fe27d263290e33ce5e5d3aa5 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 17 Nov 2014 14:53:41 -0500 Subject: fox #620 --- routers/repo/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routers/repo/http.go') diff --git a/routers/repo/http.go b/routers/repo/http.go index 0ce83cef..2dc66449 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -14,9 +14,9 @@ import ( "os" "os/exec" "path" - "path/filepath" "regexp" + "runtime" "strconv" "strings" "time" @@ -184,6 +184,7 @@ func Http(ctx *middleware.Context) { handler := HttpBackend(&config) handler(ctx.Resp, ctx.Req.Request) + runtime.GC() } type route struct { -- cgit v1.2.3