fix invalid read

This commit is contained in:
yihaoDeng 2024-09-23 11:16:53 +08:00
parent 3d6c398fda
commit 13a97f89d8
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ void transCtxInit(STransCtx* ctx) {
ctx->args = taosHashInit(2, taosGetDefaultHashFunction(TSDB_DATA_TYPE_INT), true, HASH_NO_LOCK); ctx->args = taosHashInit(2, taosGetDefaultHashFunction(TSDB_DATA_TYPE_INT), true, HASH_NO_LOCK);
} }
void transCtxCleanup(STransCtx* ctx) { void transCtxCleanup(STransCtx* ctx) {
if (ctx->args == NULL) { if (ctx == NULL || ctx->args == NULL) {
return; return;
} }