Module: kamailio Branch: master Commit: 0c2fdcc9304c605149276cf0cfce908692104322 URL: https://github.com/kamailio/kamailio/commit/0c2fdcc9304c605149276cf0cfce908692104322
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-06-29T18:26:52+02:00 core: mem - tlsf malloc - logs for free print file:line function() --- Modified: src/core/mem/tlsf_malloc.c --- Diff: https://github.com/kamailio/kamailio/commit/0c2fdcc9304c605149276cf0cfce908692104322.diff Patch: https://github.com/kamailio/kamailio/commit/0c2fdcc9304c605149276cf0cfce908692104322.patch --- diff --git a/src/core/mem/tlsf_malloc.c b/src/core/mem/tlsf_malloc.c index e599f84aff9..b539776ea4d 100644 --- a/src/core/mem/tlsf_malloc.c +++ b/src/core/mem/tlsf_malloc.c @@ -1030,8 +1030,8 @@ void tlsf_free(tlsf_t tlsf, void *ptr) #endif { #ifdef DBG_TLSF_MALLOC - MDBG("tlsf_free(%p, %p), called from %s: %s(%u)\n", tlsf, ptr, file, - function, line); + MDBG("tlsf_free(%p, %p), called from %s:%u %s()\n", tlsf, ptr, file, line, + function); #endif /* Don't attempt to free a NULL pointer. */ if(ptr) { @@ -1041,10 +1041,10 @@ void tlsf_free(tlsf_t tlsf, void *ptr) LOG(L_CRIT, "BUG: tlsf_free: freeing already freed pointer (%p)" #ifdef DBG_TLSF_MALLOC - ", called from %s: %s(%u)" - ", first free %s: %s(%u)\n", - ptr, file, function, line, block->alloc_info.file, - block->alloc_info.func, block->alloc_info.line); + ", called from %s:%u %s()" + ", first free %s:%u %s()\n", + ptr, file, line, function, block->alloc_info.file, + block->alloc_info.line, block->alloc_info.func); #else "\n", ptr); @@ -1075,8 +1075,8 @@ void tlsf_free(tlsf_t tlsf, void *ptr) block_insert(control, block); } else { #ifdef DBG_TLSF_MALLOC - LOG(L_WARN, "tlsf_free: free(0) called from %s: %s(%u)\n", file, - function, line); + LOG(L_WARN, "tlsf_free: free(0) called from %s:%u %s()\n", file, line, + function); #else LOG(L_WARN, "tlsf_free: free(0) called\n"); #endif _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
