[OpenSIPS-Devel] [OpenSIPS/opensips] 78bc56: acc: fix leak when registering missed 2nd time

Razvan Crainea razvan at opensips.org
Thu Oct 11 05:37:58 EDT 2018


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 78bc569afdb0c50c1598a3bfc3ab37d3b182138b
      https://github.com/OpenSIPS/opensips/commit/78bc569afdb0c50c1598a3bfc3ab37d3b182138b
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2018-10-11 (Thu, 11 Oct 2018)

  Changed paths:
    M modules/acc/acc_logic.c

  Log Message:
  -----------
  acc: fix leak when registering missed 2nd time

When calling do_accounting() twice, and the second time was containing
the "missed" flag, the actual acc context was leaking due to an extra
ref. This commit unrefs the context at the end of transaction.

Many thanks to Arto Kuiri for reporting this and for providing valuable
debugging information!

Close #1489

(cherry picked from commit 741c6f346b6b5e94f7991ab41c1bf9a9e89473af)



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Devel mailing list