Merge pull request #26345 from taosdata/fix/TD-30843

fix(tsdb/retention): fix null pointer crash (uaf)
This commit is contained in:
Hongze Cheng 2024-07-01 15:50:27 +08:00 committed by GitHub
commit 88a24c5457
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ _exit:
TARRAY2_DESTROY(&rtner.fopArr, NULL);
taosMemoryFree(arg);
if (code) {
tsdbError("vgId:%d, %s failed, code:%d, line:%d", TD_VID(((SRtnArg *)arg)->tsdb->pVnode), __func__, code, lino);
tsdbError("vgId:%d, %s failed, code:%d, line:%d", TD_VID(pTsdb->pVnode), __func__, code, lino);
}
return code;
}