Remove calls to destroy on ViewManager (#5557)

This commit is contained in:
Pontus Rydin 2019-03-11 14:08:53 -04:00 committed by Daniel Nelson
parent 91cd17fd40
commit 1752619e35
1 changed files with 0 additions and 1 deletions

View File

@ -79,7 +79,6 @@ func (f *Finder) descend(ctx context.Context, root types.ManagedObjectReference,
}
m := view.NewManager(f.client.Client.Client)
defer m.Destroy(ctx)
v, err := m.CreateContainerView(ctx, root, ct, false)
if err != nil {
return err