summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 0ce83cef4d..2dc66449da 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 {