From 1191b209ae191884ea40bb2377321f1129545a8a Mon Sep 17 00:00:00 2001 From: Kunal Kushwaha Date: Tue, 7 Feb 2017 14:57:44 +0900 Subject: [PATCH] closing http connection Signed-off-by: Kunal Kushwaha --- cmd/containerd/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/containerd/main.go b/cmd/containerd/main.go index d8ef983..27235ee 100644 --- a/cmd/containerd/main.go +++ b/cmd/containerd/main.go @@ -196,6 +196,7 @@ func serveGRPC(ctx gocontext.Context, server *grpc.Server, l net.Listener) { } func serveProfiler(ctx gocontext.Context, l net.Listener) { + defer l.Close() if err := http.Serve(l, nil); err != nil { log.G(ctx).WithError(err).Fatal("profiler server failure") }