Merge pull request #17901 from taosdata/fix/TD-20174

fix: fix memory leak
This commit is contained in:
Shengliang Guan 2022-11-05 20:01:30 +08:00 committed by GitHub
commit fc7f62d29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -5451,6 +5451,8 @@ int32_t modeFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) {
colDataAppendNULL(pCol, currentRow);
}
taosHashCleanup(pInfo->pHash);
return pResInfo->numOfRes;
}