diff --git a/source/libs/catalog/src/catalog.c b/source/libs/catalog/src/catalog.c index f1c2395de4297b17c91535bbb9e596cfa6c779e7..b5c7f44f982d48dd61b3b9ccdf13c3534a2f2d6b 100644 --- a/source/libs/catalog/src/catalog.c +++ b/source/libs/catalog/src/catalog.c @@ -1440,7 +1440,7 @@ int32_t ctgRefreshTblMeta(SCatalog* pCtg, void *pTransporter, const SEpSet* pMgm SCtgUpdateTblMsg *msg = NULL; STableMetaOutput moutput = {0}; - STableMetaOutput *output = malloc(sizeof(STableMetaOutput)); + STableMetaOutput *output = calloc(1, sizeof(STableMetaOutput)); if (NULL == output) { ctgError("malloc %d failed", (int32_t)sizeof(STableMetaOutput)); CTG_ERR_RET(TSDB_CODE_CTG_MEM_ERROR);