Fix detaching the extra quotas in the quota_test

(cherry picked from commit 62f738ba48)
This commit is contained in:
Witold Kręcicki
2020-04-21 13:33:42 +02:00
committed by Ondřej Surý
parent c3e26ebd26
commit 90fc717ca3

View File

@@ -210,7 +210,8 @@ isc_quota_callback_test(void **state) {
/* Release the quotas that we did not released in the callback */
for (i = 0; i < 5; i++) {
isc_quota_detach(&quotas[i]);
qp = &quota;
isc_quota_detach(&qp);
}
for (i = 6; i < 20; i++) {