Coverity analysis defect 102188: LOCK

XMLWordPrintableJSON

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

      LOCK

      Defect 102188 (STATIC_C)
      Checker LOCK (subcategory double_unlock)
      File: /src/mongoc/mongoc-topology.c
      Function _mongoc_topology_run_background
      /src/mongoc/mongoc-topology.c, line: 1053
      "pthread_mutex_unlock" unlocks "topology->mutex".

                   mongoc_mutex_unlock (&topology->mutex);
      

      /src/mongoc/mongoc-topology.c, line: 1128
      "pthread_mutex_unlock" unlocks "topology->mutex" while it is unlocked.

             mongoc_mutex_unlock (&topology->mutex);
      

            Assignee:
            Xiangyu Yao (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: