osmo-trx-lms: Fix memory leaks reported by LeakSanitizer after stopping the process.
Scenario: build and run osmo-trx-lms from master with AddressSanitizer enabled, set up the GSM network, register a phone and place a call. Press CTRL+C on osmo-trx-lms, it will stop after a few seconds of shutdown process. Then Leak report will show a huge list of memory leaks.
More information from report can be obtained by using following env vars:
See for more information on the flags:
- Status changed from New to Feedback
- % Done changed from 0 to 90
Only 3 memory leaks remain when using osmo-trx-lms after applying following patches:
Only 3 memleaks remain and I suspect they are not related to osmo-trx. I opened a ticket in LimeSuite github:
I also opened another issue due to some logging using printf instead of LimeSuite logging callback: