Resource leak in object
The memory will not be reclaimed by the destructor, and it cannot be reused until the process terminates. Constructor allocates memory but destructor does not free it
/src/mongo/db/commands/server_status_metric.cpp:56: CTOR_DTOR_LEAK 122495 Allocating memory by calling "new std::mutex".
/src/mongo/db/commands/server_status_metric.cpp:56: CTOR_DTOR_LEAK 122495 Assigning: "this->mutex" = "new std::mutex".
/src/mongo/db/commands/server_status_metric.cpp:56: CTOR_DTOR_LEAK 122495 The constructor allocates field "mutex" of "mongo::globalMetricTree(bool)::[unnamed type of 'instance']" but there is no destructor.
- is related to
-
SERVER-65987 ServerStatusMetric API refresh
- Closed