[CP] fix bad memleak when specifical tenant

This commit is contained in:
tushicheng
2023-05-31 02:48:05 +00:00
committed by ob-robot
parent 39c207dc8c
commit 6afd8edb81

View File

@ -146,6 +146,8 @@ public:
sscanf(end + 1, "%ld", &tenant_id);
tenant_id_ = tenant_id;
*end = '\0';
} else {
tenant_id_ = UINT64_MAX;
}
STRNCPY(label_, cpy, sizeof(label_));
label_[sizeof(label_) - 1] = '\0';