Calling close multiple times causes a crash

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.2.1
    • Affects Version/s: 1.2.0
    • Component/s: Java binding
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The MongoCryptImpl#close method isn't guarded:

          @Override
          public void close() {
              mongocrypt_destroy(wrapped);
              closed = true;
          }
      

      So each call to close() will try to destroy the mongocrypt_t object.

              Assignee:
              Ross Lawley
              Reporter:
              Ross Lawley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: