Merge pull request #3826 from davvid/user-memleak

zm_user: avoid memory leak when user cannot be authenticated
pull/3829/head
Isaac Connor 2024-02-11 12:58:12 -05:00 committed by GitHub
commit 0fddf96e4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ User *zmLoadUser(const std::string &username, const std::string &password) {
Info("Authenticated user '%s'", user->getUsername());
return user;
}
delete user;
} // end if 1 result from db
mysql_free_result(result);