We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe3b302 + 0280298 commit c67d32eCopy full SHA for c67d32e
src/base_alloc/base_alloc.c
@@ -304,12 +304,14 @@ void umf_ba_destroy(umf_ba_pool_t *pool) {
304
#ifndef NDEBUG
305
ba_debug_checks(pool);
306
if (pool->metadata.n_allocs) {
307
- LOG_ERR("number of base allocator memory leaks: %zu",
308
- pool->metadata.n_allocs);
309
-
310
#ifdef UMF_DEVELOPER_MODE
+ LOG_FATAL("number of base allocator memory leaks: %zu",
+ pool->metadata.n_allocs);
311
assert(pool->metadata.n_allocs == 0 &&
312
"memory leaks in base allocator occurred");
+#else
313
+ LOG_ERR("number of base allocator memory leaks: %zu",
314
315
#endif
316
}
317
#endif /* NDEBUG */
0 commit comments