Skip to content

Commit aeb6224

Browse files
authored
Merge pull request #410 from igchor/do_not_fail_on_assert
Remove assert from umf_ba_destroy
2 parents a339b1f + d74c280 commit aeb6224

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/base_alloc/base_alloc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ void umf_ba_destroy(umf_ba_pool_t *pool) {
291291
if (pool->metadata.n_allocs) {
292292
LOG_ERR("umf_ba_destroy(): pool->metadata.n_allocs = %zu",
293293
pool->metadata.n_allocs);
294-
assert(pool->metadata.n_allocs == 0);
295294
}
296295
#endif /* NDEBUG */
297296

src/base_alloc/base_alloc_linear.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ void umf_ba_linear_destroy(umf_ba_linear_pool_t *pool) {
252252
if (pool->metadata.global_n_allocs) {
253253
LOG_ERR("umf_ba_linear_destroy(): global_n_allocs = %zu",
254254
pool->metadata.global_n_allocs);
255-
assert(pool->metadata.global_n_allocs == 0);
256255
}
257256
#endif /* NDEBUG */
258257

0 commit comments

Comments
 (0)