[OpenSIPS-Devel] [OpenSIPS/opensips] 5d55e5: b2b_logic: fix issues when new entities are unused
Vlad Pătrașcu
noreply at github.com
Fri Jun 9 15:00:13 UTC 2023
Branch: refs/heads/3.4
Home: https://github.com/OpenSIPS/opensips
Commit: 5d55e51bd97fda250374e2f5b42b9abe6e82d290
https://github.com/OpenSIPS/opensips/commit/5d55e51bd97fda250374e2f5b42b9abe6e82d290
Author: Vlad Patrascu <vladp at opensips.org>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M modules/b2b_logic/b2b_logic.c
M modules/b2b_logic/b2b_logic.h
M modules/b2b_logic/bridging.c
M modules/b2b_logic/logic.c
M modules/b2b_logic/records.h
Log Message:
-----------
b2b_logic: fix issues when new entities are unused
New entities created with b2b_server_new() or b2b_client_new() functions would
leak if they were not eventually used by a b2b_init_request() call. This would
lead to pkg memory leaks and bogus errors from successive calls to
b2b_init_request().
Also, fix an entity memory leak when using the b2b_bridge_retry() function
for a tuple that is in a non-initial bridging state (eg. triggered by
b2b_bridge_request()).
(cherry picked from commit c84fe372c50becc177f57732ff087da53b71be0f)
More information about the Devel
mailing list