@sergey-safarov - if kamailio is compiled with pkg memory, then external tools cannot
detect its memory leaks in most of the cases. There are few places where kamailio is still
using the system memory manager (iirc, rpc commands build the output in system memory).
Otherwise kamailio allocates a big chunk of system memory at startup and that's it, at
runtime the pkg allocator works inside that chunk. There is option to compile to use
system memory manager instead pkg, but that's not the default.
Normally, you can pass compiler or linker extra cli parameters via:
```
CC_EXTRA_OPTS=... LD_EXTRA_OPTS=... make ...
```
Of course, you can also make a new mode if you want to be persistent in the
src/Makefile.defs -- in such case, just make a pull request.
If you feel there is more to discuss here, then reopen.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2650#issuecomment-787914896