[Kamailio-Devel] SF.net SVN: openser:[5135]

Henning Westerholt henning.westerholt at 1und1.de
Mon Oct 27 11:13:00 CET 2008


Revision: 5135
          http://openser.svn.sourceforge.net/openser/?rev=5135&view=rev
Author:   henningw
Date:     2008-10-27 10:12:59 +0000 (Mon, 27 Oct 2008)

Log Message:
-----------
- fix three memory leaks in registrar, related to DB_ONLY mode in usrloc:
  1. Free all memory when unregistrations with '*' are proceeded. In the
  usrloc a static urecord was used in this case, but this not hold refereces
  to the alloced ucontact records. Thus the usrloc module is not able to free
  them later. When the first query (that fills the urecord r) fails, the
  previous behavious is used.
  2. Free all memory when the state of a registrations is queried
  (no_contacts). The registrar allocates a new urecord, but fails to free
  it after building the contact.
  3. Free memory in error condition in 'star', related to the first fix. This
  functions allocated in a certain error condition (delete failed) a new
  urecord, but fails to free it too later.
- the first and second leak leads to complete memory exhaustion

Modified Paths:
--------------
    branches/1.3/modules/registrar/save.c
    branches/1.4/modules/registrar/save.c
    trunk/modules/registrar/save.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list