Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 543a40c and only present on OpenSIPS 3.4+. Related to #3235
- Loading branch information