|
Leak of memory or pointers to system resources
Defect 72713 (STATIC_C)
Checker RESOURCE_LEAK (subcategory none)
File: /src/mongo/db/commands/user_management_commands.cpp
Function mongo::<unnamed>::getCurrentUserRoles(mongo::OperationContext *, mongo::AuthorizationManager *, const mongo::UserName &, std::unordered_set<mongo::RoleName, std::hash<mongo::RoleName>, std::equal_to<mongo::RoleName>, std::allocator<mongo::RoleName>> *)
/src/mongo/db/commands/user_management_commands.cpp, line: 151
Variable "user" going out of scope leaks the storage it points to.
|