diff options
Diffstat (limited to 'src/mongo/db/auth/authorization_manager.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_manager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/auth/authorization_manager.cpp b/src/mongo/db/auth/authorization_manager.cpp index 584f4fef33c..baf3a7a99e3 100644 --- a/src/mongo/db/auth/authorization_manager.cpp +++ b/src/mongo/db/auth/authorization_manager.cpp @@ -595,6 +595,7 @@ Status AuthorizationManager::acquireUserForSessionRefresh(OperationContext* opCt } if (uid != (*user)->getID()) { + releaseUser(*user); *user = nullptr; return {ErrorCodes::UserNotFound, str::stream() << "User id from privilege document '" << userName.toString() |