fix:[TD-31558] Handle error of tDecodeSSchemaWrapper.
This commit is contained in:
parent
dcd8af8dae
commit
7759e6aea4
|
@ -694,9 +694,13 @@ int32_t metaGetTbTSchemaEx(SMeta *pMeta, tb_uid_t suid, tb_uid_t uid, int32_t sv
|
|||
SSchemaWrapper *pSchemaWrapper = &schema;
|
||||
|
||||
tDecoderInit(&dc, pData, nData);
|
||||
(void)tDecodeSSchemaWrapper(&dc, pSchemaWrapper);
|
||||
code = tDecodeSSchemaWrapper(&dc, pSchemaWrapper);
|
||||
tDecoderClear(&dc);
|
||||
tdbFree(pData);
|
||||
if (TSDB_CODE_SUCCESS != code) {
|
||||
taosMemoryFree(pSchemaWrapper->pSchema);
|
||||
goto _exit;
|
||||
}
|
||||
|
||||
// convert
|
||||
STSchema *pTSchema = tBuildTSchema(pSchemaWrapper->pSchema, pSchemaWrapper->nCols, pSchemaWrapper->version);
|
||||
|
|
Loading…
Reference in New Issue