Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90791

Coverity analysis defect 145305: Resource leak

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: IDL
    • Service Arch
    • ALL
    • v8.0
    • Programmability 2024-06-10

      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
      /build/7a67446c/mongo/s/sharding_feature_flags_gen.cpp:224: RESOURCE_LEAK 145305 Assigning: "scp_22" = storage returned from "mongo::_mongoInitializerFunction_idl_01cf03ec221805c1ad4e1490538b186c797fdc44(mongo::InitializerContext *)::[lambda() (instance 23)]()()".
      /build/7a67446c/mongo/s/sharding_feature_flags_gen.cpp:229: RESOURCE_LEAK 145305 Variable "scp_22" going out of scope leaks the storage it points to.

            Assignee:
            ronald.steinke@mongodb.com Ronald Steinke
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: