[CP] fix bad memleak when specifical tenant
This commit is contained in:
@ -146,6 +146,8 @@ public:
|
|||||||
sscanf(end + 1, "%ld", &tenant_id);
|
sscanf(end + 1, "%ld", &tenant_id);
|
||||||
tenant_id_ = tenant_id;
|
tenant_id_ = tenant_id;
|
||||||
*end = '\0';
|
*end = '\0';
|
||||||
|
} else {
|
||||||
|
tenant_id_ = UINT64_MAX;
|
||||||
}
|
}
|
||||||
STRNCPY(label_, cpy, sizeof(label_));
|
STRNCPY(label_, cpy, sizeof(label_));
|
||||||
label_[sizeof(label_) - 1] = '\0';
|
label_[sizeof(label_) - 1] = '\0';
|
||||||
|
Reference in New Issue
Block a user