Module: kamailio
Branch: master
Commit: f89b0e2eb5b543f9689e894b02cb5e0585fd0b99
URL:
https://github.com/kamailio/kamailio/commit/f89b0e2eb5b543f9689e894b02cb5e0…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-09-21T21:22:20+02:00
core: remove pointless assert, block_size returns size_t so it will be always >= 0
---
Modified: src/core/mem/tlsf_malloc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f89b0e2eb5b543f9689e894b02cb5e0…
Patch:
https://github.com/kamailio/kamailio/commit/f89b0e2eb5b543f9689e894b02cb5e0…
---
diff --git a/src/core/mem/tlsf_malloc.c b/src/core/mem/tlsf_malloc.c
index bcaf979466..4907142e9b 100644
--- a/src/core/mem/tlsf_malloc.c
+++ b/src/core/mem/tlsf_malloc.c
@@ -491,7 +491,6 @@ static block_header_t* block_split(block_header_t* block, size_t
size)
tlsf_assert(block_size(block) == remain_size + size + block_header_overhead);
block_set_size(remaining, remain_size);
- tlsf_assert(block_size(remaining) >= 0 && "block split with invalid
size");
block_set_size(block, size);
block_mark_as_free(remaining);