Coverity analysis defect 101485: Wrapper object use after free

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding 2017-05-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Defect 101485 (STATIC_C)
      Checker WRAPPER_ESCAPE (subcategory none)
      File: /src/mongo/s/sharding_test_fixture.cpp
      Function mongo::ShardingTestFixture::setUp()
      /src/mongo/s/sharding_test_fixture.cpp, line: 132
      The internal representation of local "fixedExec" escapes into "this->_executor", but is destroyed when it exits scope.

              _executor = fixedExec.get();
      

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

              Created:
              Updated:
              Resolved: