[OpenSIPS-Devel] [OpenSIPS/opensips] 8532f9: Fix memory leak when ping-failed contacts unregist...
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Apr 24 05:36:16 EDT 2018
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 8532f9ed50aef1dbbf06668dcd9cfed1702c5a7d
https://github.com/OpenSIPS/opensips/commit/8532f9ed50aef1dbbf06668dcd9cfed1702c5a7d
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2018-04-24 (Tue, 24 Apr 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.
More information about the Devel
mailing list