fix invalid read
This commit is contained in:
parent
3d6c398fda
commit
13a97f89d8
|
@ -347,7 +347,7 @@ void transCtxInit(STransCtx* ctx) {
|
|||
ctx->args = taosHashInit(2, taosGetDefaultHashFunction(TSDB_DATA_TYPE_INT), true, HASH_NO_LOCK);
|
||||
}
|
||||
void transCtxCleanup(STransCtx* ctx) {
|
||||
if (ctx->args == NULL) {
|
||||
if (ctx == NULL || ctx->args == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue