Coverity analysis defect 175605: Resource leak

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Resource leak

      The system resource will not be reclaimed and reused, reducing the future availability of the resource. Leak of memory or pointers to system resources
      /data/mci/4f6a63b49e3bc2b19580469b9ae1fa2a/bazel_cache/c6c276818191528edadb354cb30d354d/execroot/_main/src/mongo/db/query/compiler/rewrites/matcher/expression_optimizer.cpp:690: RESOURCE_LEAK 175605 Resource "std::shared_ptr<mongo::InListData const>(ime->getInListDataPtr())->getElements(true)" is not freed or pointed-to in "begin". [Note: The source code implementation of the function has been overridden by a builtin model.]
      /data/mci/4f6a63b49e3bc2b19580469b9ae1fa2a/bazel_cache/c6c276818191528edadb354cb30d354d/execroot/_main/src/mongo/db/query/compiler/rewrites/matcher/expression_optimizer.cpp:690: RESOURCE_LEAK 175605 Failing to save or free storage allocated by "std::shared_ptr<mongo::InListData const>(ime->getInListDataPtr())->getElements(true)" leaks it.

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

              Created:
              Updated:
              Resolved: