From 4807755c335d44ddf0ff9685e5fe4694cb8be292 Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Tue, 12 Oct 2021 15:54:51 -0500 Subject: [PATCH] [qfix] Fix resource leak in begin (#1104) Signed-off-by: Ed Warnicke --- pkg/networkservice/common/begin/event_factory.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/networkservice/common/begin/event_factory.go b/pkg/networkservice/common/begin/event_factory.go index e55b0abde..06ae62d5c 100644 --- a/pkg/networkservice/common/begin/event_factory.go +++ b/pkg/networkservice/common/begin/event_factory.go @@ -203,6 +203,7 @@ func (f *eventFactoryServer) Close(opts ...Option) <-chan error { ctx, cancel := f.ctxFunc() defer cancel() _, err := f.server.Close(ctx, f.request.GetConnection()) + f.afterCloseFunc() ch <- err } })