Add missing DbC check for name##_detach in ISC_REFCOUNT_IMPL macro

The detach function in the ISC_REFCOUNT_IMPL macro was missing DbC
checks, add them.
This commit is contained in:
Ondřej Surý
2022-09-30 09:50:17 +02:00
parent b242790e1d
commit 1e2ededb07
+1
View File
@@ -174,6 +174,7 @@ isc_refcount_decrement(isc_refcount_t *target) {
} \
\
void name##_detach(name##_t **ptrp) { \
REQUIRE(ptrp != NULL && *ptrp != NULL); \
name##_t *ptr = *ptrp; \
*ptrp = NULL; \
name##_unref(ptr); \