X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Findex-allocator.c;fp=src%2Fcommon%2Findex-allocator.c;h=8c73218a950d5275ac70d163ace4893cb53439ea;hp=885015d77a3183ea1478b96a00bef87a2895faba;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/src/common/index-allocator.c b/src/common/index-allocator.c index 885015d77..8c73218a9 100644 --- a/src/common/index-allocator.c +++ b/src/common/index-allocator.c @@ -5,7 +5,6 @@ * */ -#include #include #include @@ -91,7 +90,7 @@ enum lttng_index_allocator_status lttng_index_allocator_release( enum lttng_index_allocator_status status = LTTNG_INDEX_ALLOCATOR_STATUS_OK; - assert(idx < allocator->size); + LTTNG_ASSERT(idx < allocator->size); index = zmalloc(sizeof(*index)); if (!index) {