Find method doesn't defer a session close.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.0.1
    • Component/s: Error Handling
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Sam Lotti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: