Coverity analysis defect 156278: Resource leak

XMLWordPrintableJSON

    • Service Arch
    • Fully Compatible
    • ALL
    • v8.0
    • Programmability 2024-06-10
    • None
    • 3
    • 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
      /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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: