[OpenSIPS-Devel] [OpenSIPS/opensips] d7bbb2: aaa_diameter: Fix mem leak on startup
Liviu Chircu
noreply at github.com
Thu Jul 1 14:49:39 EST 2021
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: d7bbb2951e6c923c4c6eaab95553cfe181589d20
https://github.com/OpenSIPS/opensips/commit/d7bbb2951e6c923c4c6eaab95553cfe181589d20
Author: Liviu Chircu <liviu at opensips.org>
Date: 2021-07-01 (Thu, 01 Jul 2021)
Changed paths:
M modules/aaa_diameter/aaa_impl.c
M modules/aaa_diameter/app_opensips/app_opensips.c
Log Message:
-----------
aaa_diameter: Fix mem leak on startup
Commit: 1f55d05c2b786ee8cca227ff367d49145bed51a4
https://github.com/OpenSIPS/opensips/commit/1f55d05c2b786ee8cca227ff367d49145bed51a4
Author: Liviu Chircu <liviu at opensips.org>
Date: 2021-07-01 (Thu, 01 Jul 2021)
Changed paths:
M mem/f_malloc.c
M mem/f_malloc.h
M mem/f_malloc_dyn.h
M mem/hp_malloc.c
M mem/hp_malloc.h
M mem/q_malloc.c
M mem/q_malloc.h
M mem/test/test_malloc.c
Log Message:
-----------
Memory allocators: Improve the memory alignment support
This patch fixes the support for configurable memory alignment, such
that the ROUNDTO macro is now truly customizable, for any allocator. As
long as the ROUNDTO is a multiple of 2, the allocators will return
memory aligned to any required multiple.
The defaults are still the same, as follows:
* F_MALLOC: 8-byte aligned memory addresses
* HP_MALLOC: 8-byte aligned memory addresses
* Q_MALLOC: 16-byte aligned memory addresses (the default in libc!)
Also extend the allocator testing suite with memory alignment tests.
Related to #2546
Compare: https://github.com/OpenSIPS/opensips/compare/00e5b994ecce...1f55d05c2b78
More information about the Devel
mailing list