This commit is contained in:
Evgeny committed 2026-06-05 22:34:49 +03:00
1 parent e81299a727
commit 40c7a5b487
1 file changed
+1 -2
+1 -2
View File
@@ -15,8 +15,7 @@ static void pool_init_tags(struct memory_pool* pool, void* obj)
uint8_t* canary = (uint8_t*)obj + POOL_CANARY_OFF;
uint8_t* counter = (uint8_t*)obj + POOL_TAG_OFF;
*canary = POOL_CANARY_VAL;
*counter = ++pool->alloc_tag_counter;
if (pool->alloc_tag_counter == 0) pool->alloc_tag_counter = 1;
*counter = 1;
}
static void pool_check_and_clear_tags(struct memory_pool* pool, void* obj, const char* location)