add temporary code to detect memory leak

This commit is contained in:
Bomin Zhang 2020-12-18 10:35:28 +00:00
parent 280e1f1b3b
commit 2f909c831a
1 changed files with 3 additions and 0 deletions

View File

@ -2577,6 +2577,9 @@ void* tscVgroupInfoClear(SVgroupsInfo *vgroupList) {
for(int32_t j = 0; j < pVgroupInfo->numOfEps; ++j) {
tfree(pVgroupInfo->epAddr[j].fqdn);
}
for(int32_t j = pVgroupInfo->numOfEps; j < TSDB_MAX_REPLICA; j++) {
assert( pVgroupInfo->epAddr[j].fqdn == NULL );
}
}
tfree(vgroupList);