Details
Description
Leak of memory or pointers to system resources
Defect 73299 (STATIC_C)
Checker RESOURCE_LEAK (subcategory none)
File: /src/mongo/db/modules/enterprise/src/encryptdb/wiredtiger_encryption_callbacks.cpp
Function mongo_addWiredTigerEncryptors
/src/mongo/db/modules/enterprise/src/encryptdb/wiredtiger_encryption_callbacks.cpp, line: 244
Storage is returned from allocation function "operator new".
mongo::ExtendedWTEncryptor* extWTEncryptor = new mongo::ExtendedWTEncryptor;
|
/src/mongo/db/modules/enterprise/src/encryptdb/wiredtiger_encryption_callbacks.cpp, line: 244
Assigning: "extWTEncryptor" = storage returned from "new mongo::<unnamed>::ExtendedWTEncryptor".
mongo::ExtendedWTEncryptor* extWTEncryptor = new mongo::ExtendedWTEncryptor;
|
/src/mongo/db/modules/enterprise/src/encryptdb/wiredtiger_encryption_callbacks.cpp, line: 258
Variable "extWTEncryptor" going out of scope leaks the storage it points to.
return 0;
|