Coverity analysis defect 101837: Wrapper object use after free

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Sharding 2017-07-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      An internal pointer of a wrapper object remains available after the object is freed

      Defect 101837 (STATIC_C)
      Checker WRAPPER_ESCAPE (subcategory none)
      File: /src/mongo/s/config_server_test_fixture.cpp
      Function mongo::ConfigServerTestFixture::setUp()
      /src/mongo/s/config_server_test_fixture.cpp, line: 118
      The internal representation of local "specialExec" escapes into "this->_executorForAddShard", but is destroyed when it exits scope.

                  _executorForAddShard = specialExec.get();
      

            Assignee:
            Kaloian Manassiev
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: