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

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


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5828bd30f601a414a59caa9a499adc7916aeacaf
      https://github.com/OpenSIPS/opensips/commit/5828bd30f601a414a59caa9a499adc7916aeacaf
  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/logic.c

  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().

(cherry picked from commit c84fe372c50becc177f57732ff087da53b71be0f)





More information about the Devel mailing list