Coverity Quality Issue 184026: Resource leak

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Coverity found a Quality issue: Resource leak

      Details:

      Coverity Issue ID: 184026
      Issue Description: Leak of memory or pointers to system resources
      Potential Impact: The system resource will not be reclaimed and reused, reducing the future availability of the resource.
      Coverity checker: RESOURCE_LEAK
      Branch: v8.0
      File path: /src/mongo/db/throw_hook_options_gen.cpp
      Line number: Unknown

      What Coverity Detected (Main Finding)

      Variable "scp_1" going out of scope leaks the storage it points to.

      The issue can be viewed in Coverity here.

      How do I fix this?

      Refer to https://wiki.corp.mongodb.com/spaces/HGTC/pages/385852267/Guidance+on+fixing+Coverity+issues for guidance on fixing Coverity issues.

      Note: This issue was found on the v8.0 branch. If a fix is needed, you must create a BACKPORT ticket following the Server BACKPORT policy

            Assignee:
            Unassigned
            Reporter:
            kondukto-svc@mongodb.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: