mirror of https://gitee.com/bigwinds/arangodb
fixed memleak
This commit is contained in:
parent
b7ffe8d74e
commit
8e40e727a4
|
@ -127,7 +127,7 @@ static void FreeAuthCacheInfo (TRI_vocbase_auth_cache_t* cached) {
|
|||
TRI_Free(TRI_CORE_MEM_ZONE, cached->_hash);
|
||||
}
|
||||
|
||||
if (cached->_username == nullptr) {
|
||||
if (cached->_username != nullptr) {
|
||||
TRI_Free(TRI_CORE_MEM_ZONE, cached->_username);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue