summaryrefslogtreecommitdiff
path: root/caddy.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-03-27 12:36:30 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-03-27 12:36:30 -0600
commit27ff6aeccb99995880a86ee482dd90c1e5c85d85 (patch)
treecbdca5162a3cba8a029ca6d1c53aa470274f94e4 /caddy.go
parenta8dc73b4d9db5edf85e78314c9759b9d12a79b71 (diff)
Fix goroutine leak in Run
D'oh, the servers' Shutdown() would never be called because they were never added to the list of servers. Thanks Danny for finding this.
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/caddy.go b/caddy.go
index 40b73c5..3b7aee2 100644
--- a/caddy.go
+++ b/caddy.go
@@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"log"
- "runtime/debug"
"strings"
"sync"
"time"
@@ -49,9 +48,6 @@ func Start(cfg Config) error {
currentCfg = &cfg
currentCfgMu.Unlock()
- // TODO: debugging memory leak...
- debug.FreeOSMemory()
-
return nil
}