diff --git a/lib/isc/tests/quota_test.c b/lib/isc/tests/quota_test.c index 997b253fb2..60b66ede44 100644 --- a/lib/isc/tests/quota_test.c +++ b/lib/isc/tests/quota_test.c @@ -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("as[i]); + qp = "a; + isc_quota_detach(&qp); } for (i = 6; i < 20; i++) {