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

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


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 957fcf03cfbffc1d2048bf498f33ba9f8a41a2a9
      https://github.com/OpenSIPS/opensips/commit/957fcf03cfbffc1d2048bf498f33ba9f8a41a2a9
  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