[OpenSIPS-Devel] [OpenSIPS/opensips] 7fd9cc: aaa_diameter: Fix mem leak on startup
Liviu Chircu
noreply at github.com
Thu Jul 1 14:50:18 EST 2021
Branch: refs/heads/3.2
Home: https://github.com/OpenSIPS/opensips
Commit: 7fd9cc6e9a614d6a4dabf7ef33bd7220e19945db
https://github.com/OpenSIPS/opensips/commit/7fd9cc6e9a614d6a4dabf7ef33bd7220e19945db
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
(cherry picked from commit d7bbb2951e6c923c4c6eaab95553cfe181589d20)
Commit: b491d44f8ac2ff9f333ae04bb9c2c3ba11a4b315
https://github.com/OpenSIPS/opensips/commit/b491d44f8ac2ff9f333ae04bb9c2c3ba11a4b315
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
(cherry picked from commit 1f55d05c2b786ee8cca227ff367d49145bed51a4)
Compare: https://github.com/OpenSIPS/opensips/compare/8da4b56eb89f...b491d44f8ac2
More information about the Devel
mailing list