Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1017

Find method doesn't defer a session close.

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.0.1
    • Component/s: Error Handling
    • None

      Implicit session is not defer closed in the Find method:

      Find.go 

      line 66

       

      defer cmd.Session.EndSession()

      There are various return points within the method.  Will not return the session,

      There is a explicitly coded close at the end.

      if err != nil

      { closeImplicitSession(cmd.Session) return nil, err }

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            samlotti Sam Lotti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: