[tscAsync/crash]: fix NULL pointer access

This commit is contained in:
Minglei Jin 2021-04-22 18:38:07 +08:00
parent d47b358b61
commit 6b9cd6a31d
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ void tscQueueAsyncError(void(*fp), void *param, int32_t code) {
static void tscAsyncResultCallback(SSchedMsg *pMsg) {
SSqlObj* pSql = (SSqlObj*)taosAcquireRef(tscObjRef, (int64_t)pMsg->ahandle);
if (pSql == NULL || pSql->signature != pSql) {
tscDebug("0x%"PRIx64" SqlObj is freed, not add into queue async res", pSql->self);
tscDebug("%p SqlObj is freed, not add into queue async res", pMsg->ahandle);
return;
}