mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 09:06:26 -04:00
INSIST that no quota is in use when the quota object is
destroyed
This commit is contained in:
parent
e5f8f2659b
commit
cae053a51f
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ isc_quota_init(isc_quota_t *quota, int max) {
|
|||
|
||||
void
|
||||
isc_quota_destroy(isc_quota_t *quota) {
|
||||
INSIST(quota->used == 0);
|
||||
quota->max = -1;
|
||||
quota->used = -1;
|
||||
RUNTIME_CHECK(isc_mutex_destroy("a->lock) == ISC_R_SUCCESS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue