From: Alan T. DeKok Date: Mon, 8 Mar 2021 15:27:31 +0000 (-0500) Subject: assert that the various heap IDs are marked as "free" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c8115a4ff42f062ab841ee29e255e2f6d79b2be;p=thirdparty%2Ffreeradius-server.git assert that the various heap IDs are marked as "free" --- diff --git a/src/lib/server/request.c b/src/lib/server/request.c index c1a7ae44c5c..c57d9f18bc6 100644 --- a/src/lib/server/request.c +++ b/src/lib/server/request.c @@ -290,6 +290,9 @@ static inline CC_HINT(always_inline) int request_init(char const *file, int line */ static int _request_free(request_t *request) { + fr_assert(request->time_order_id <= 0); + fr_assert(request->runnable_id <= 0); + /* * Reinsert into the free list if it's not already * in the free list.