invalid read while print log

This commit is contained in:
Shengliang Guan 2020-07-03 16:35:14 +08:00
parent 1327838623
commit fb951a3762
1 changed files with 1 additions and 1 deletions

View File

@ -377,9 +377,9 @@ static void *mnodePutShowObj(SShowObj *pShow, int32_t size) {
if (tsMnodeShowCache != NULL) {
pShow->index = atomic_add_fetch_32(&tsShowObjIndex, 1);
SShowObj *newQhandle = taosCachePut(tsMnodeShowCache, &pShow->index, sizeof(int32_t), pShow, size, 6);
mDebug("%p, show is put into cache, index:%d", newQhandle, pShow->index);
free(pShow);
mDebug("%p, show is put into cache, index:%d", newQhandle, pShow->index);
return newQhandle;
}