Skip to content

Commit

Permalink
[qfix] Fix resource leak in begin (#1104)
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
  • Loading branch information
edwarnicke authored Oct 12, 2021
1 parent 96a8103 commit 4807755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/networkservice/common/begin/event_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
Expand Down

0 comments on commit 4807755

Please sign in to comment.