[OpenSIPS-Devel] [OpenSIPS/opensips] c84fe3: b2b_logic: fix issues when new entities are unused

Vlad Pătrașcu noreply at github.com
Fri Jun 9 15:00:06 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c84fe372c50becc177f57732ff087da53b71be0f
      https://github.com/OpenSIPS/opensips/commit/c84fe372c50becc177f57732ff087da53b71be0f
  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()).





More information about the Devel mailing list