[OpenSIPS-Devel] [OpenSIPS/opensips] f2429a: Fix memory leak when ping-failed contacts unregist...

Bogdan-Andrei Iancu bogdan at opensips.org
Thu May 17 16:48:27 EDT 2018


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f2429ac736d437b248eebcd85999e7217ea82b23
      https://github.com/OpenSIPS/opensips/commit/f2429ac736d437b248eebcd85999e7217ea82b23
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-05-17 (Thu, 17 May 2018)

  Changed paths:
    M modules/nathelper/nathelper.c
    M modules/nathelper/nh_table.c
    M modules/nathelper/nh_table.h
    M modules/nathelper/sip_pinger.h

  Log Message:
  -----------
  Fix memory leak when ping-failed contacts unregister.

As for the contacts with failed ping we keep the ping_cell into hash (in order to count the failures), we need a second timer list to be sure that the ping_cellis actually removed from hash as some point. Without this second list, as the ping_cell exists only in hash, if the contact is unregistered, it will never be removed.

(cherry picked from commit 8532f9ed50aef1dbbf06668dcd9cfed1702c5a7d)



      **NOTE:** This service 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