fix invalid free

This commit is contained in:
yihaoDeng 2024-11-26 20:50:37 +08:00
parent 1a05a4cd7d
commit e87570c036
2 changed files with 6 additions and 0 deletions

View File

@ -2049,7 +2049,9 @@ static int metaUpdateTableMultiTagVal(SMeta *pMeta, int64_t version, SVAlterTbRe
}
if (tdbTbcGet(pUidIdxc, NULL, NULL, &pData, &nData) != 0) {
tdbTbcClose(pUidIdxc);
metaError("meta/table: failed to get uid index, uid:%" PRId64, uid);
return terrno = TSDB_CODE_TDB_TABLE_NOT_EXIST;
}
oversion = ((SUidIdxVal *)pData)[0].version;
@ -2302,7 +2304,9 @@ static int metaUpdateTableTagVal(SMeta *pMeta, int64_t version, SVAlterTbReq *pA
}
if (tdbTbcGet(pUidIdxc, NULL, NULL, &pData, &nData) != 0) {
tdbTbcClose(pUidIdxc);
metaError("meta/table: failed to get uid index, uid:%" PRId64, uid);
return terrno = TSDB_CODE_TDB_TABLE_NOT_EXIST;
}
oversion = ((SUidIdxVal *)pData)[0].version;

View File

@ -179,4 +179,6 @@ if $rows != 1 then
return -1
endi
sql alter table $tbj set tag tagCol1=true,tagCol2=-10,tagcol3=-100, tagcol4=-1000,tagcol5=NULL,tagCol6=NULL,tagCol7=NULL
system sh/exec.sh -n dnode1 -s stop -x SIGINT