[OpenSIPS-Devel] [OpenSIPS/opensips] 447644: aaa_diameter: Fix PKG malloc usage with threads
Liviu Chircu
noreply at github.com
Mon Sep 21 08:46:29 UTC 2026
Branch: refs/heads/4.0
Home: https://github.com/OpenSIPS/opensips
Commit: 447644f330a0a89c53716c65141d6190cb76835e
https://github.com/OpenSIPS/opensips/commit/447644f330a0a89c53716c65141d6190cb76835e
Author: Liviu Chircu <liviu at opensips.org>
Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths:
M modules/aaa_diameter/dm_impl.c
Log Message:
-----------
aaa_diameter: Fix PKG malloc usage with threads
Avoid using pkg_malloc() in freeDiameter callbacks which can be
concurrently called from various worker threads. Use a thread-safe
allocation function instead, such as system malloc().
Also restrict the thread-local cJSON SHM hooks to the operations that
require them and remove a redundant protected hash lookup.
Many thanks to Andrii Pogrebennyk from NGVoice for the report and an
initial version of this patch.
(cherry picked from commit caebd8e068e070eab8b6f34f93bc23cbf5b47273)
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list