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

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


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



      **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