Coverity analysis defect 102106: Double free

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.9.0
    • Affects Version/s: 1.9.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Memory is deallocated more than once

      Defect 102106 (STATIC_C)
      Checker USE_AFTER_FREE (subcategory double_free)
      File: /src/mongoc/mongoc-cluster.c
      Function _mongoc_cluster_auth_node_cr
      /src/mongoc/mongoc-cluster.c, line: 836
      Calling "mongoc_server_stream_cleanup" frees pointer "server_stream" which has already been freed.

             mongoc_server_stream_cleanup (server_stream);
      

            Assignee:
            Hannes Magnusson (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: