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

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


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 312056a33e037a5b678275a76740afc486edf49f
      https://github.com/OpenSIPS/opensips/commit/312056a33e037a5b678275a76740afc486edf49f
  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)
(cherry picked from commit d914720b0bbf620a30e5c16ff9548733783295ec)





More information about the Devel mailing list