fix: send uninitialized memory (#30328)
This commit is contained in:
parent
adc892dea6
commit
9723fd9182
|
@ -153,7 +153,7 @@ int metaUpdateMetaRsp(tb_uid_t uid, char *tbName, SSchemaWrapper *pSchema, STabl
|
||||||
return terrno;
|
return terrno;
|
||||||
}
|
}
|
||||||
|
|
||||||
pMetaRsp->pSchemaExt = taosMemoryMalloc(pSchema->nCols * sizeof(SSchemaExt));
|
pMetaRsp->pSchemaExt = taosMemoryCalloc(1, pSchema->nCols * sizeof(SSchemaExt));
|
||||||
if (pMetaRsp->pSchemaExt == NULL) {
|
if (pMetaRsp->pSchemaExt == NULL) {
|
||||||
taosMemoryFree(pMetaRsp->pSchemas);
|
taosMemoryFree(pMetaRsp->pSchemas);
|
||||||
return terrno;
|
return terrno;
|
||||||
|
|
Loading…
Reference in New Issue