diff --git a/ipn/localapi/localapi.go b/ipn/localapi/localapi.go index 574fa12a0..9997f4999 100644 --- a/ipn/localapi/localapi.go +++ b/ipn/localapi/localapi.go @@ -689,6 +689,8 @@ func (h *Handler) serveDebugPortmap(w http.ResponseWriter, r *http.Request) { } logf("cb: no mapping") }) + defer c.Close() + linkMon, err := monitor.New(logger.WithPrefix(logf, "monitor: ")) if err != nil { logf("error creating monitor: %v", err)