[OpenSIPS-Devel] [OpenSIPS/opensips] 95a27f: dialog: Mitigate 'dlg_list' PKG fragmentation; Fix...
Liviu Chircu
noreply at github.com
Wed Nov 15 15:55:28 UTC 2023
Branch: refs/heads/3.4
Home: https://github.com/OpenSIPS/opensips
Commit: 95a27fec5f2202ab3e473350ebea6beba2d62234
https://github.com/OpenSIPS/opensips/commit/95a27fec5f2202ab3e473350ebea6beba2d62234
Author: Liviu Chircu <liviu at opensips.org>
Date: 2023-11-15 (Wed, 15 Nov 2023)
Changed paths:
M modules/dialog/dlg_hash.c
Log Message:
-----------
dialog: Mitigate 'dlg_list' PKG fragmentation; Fix dlg_list_ctx memleak
By using pkg_str_extend() instead of pkg_realloc(), we avoid a constant
creation of PKG fragments (the buffer will eventually stop growing),
which seems to gradually fragment the private memory pool, as the MI
'dlg_list' is continuously polled by various monitoring software.
As a bonus, this patch also fixes a 'dlg_list_ctx' PKG memory leak
introduced in 543a40c8ff and only present on OpenSIPS 3.4+.
Related to #3235
(cherry picked from commit 34dc02bf8e118891ca68e8bf06261980ec7130b0)
More information about the Devel
mailing list