diff --git a/lib/isc/tests/Kyuafile b/lib/isc/tests/Kyuafile index 834261b321..d07b11f543 100644 --- a/lib/isc/tests/Kyuafile +++ b/lib/isc/tests/Kyuafile @@ -17,6 +17,7 @@ tap_test_program{name='netaddr_test'} tap_test_program{name='parse_test'} tap_test_program{name='pool_test'} tap_test_program{name='radix_test'} +tap_test_program{name='quota_test'} tap_test_program{name='regex_test'} tap_test_program{name='result_test'} tap_test_program{name='safe_test'} 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++) {