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

Coverity analysis defect 156278: Resource leak

    • Service Arch
    • Fully Compatible
    • 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/db/s/sharding_cluster_parameters_gen.cpp:479: RESOURCE_LEAK 156278 Assigning: "scp_1" = storage returned from "mongo::_mongoInitializerFunction_idl_ff507be88604ed7bcb64c61da0bf6fa7cf806b80(mongo::InitializerContext *)::[lambda() (instance 2)]()()".
      /build/7a67446c/mongo/db/s/sharding_cluster_parameters_gen.cpp:485: RESOURCE_LEAK 156278 Variable "scp_1" 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:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: