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

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 15 18:05:52 CET 2008



On 12/15/08 18:56, Henning Westerholt wrote:
> Revision: 5364
>           http://openser.svn.sourceforge.net/openser/?rev=5364&view=rev
> Author:   henningw
> Date:     2008-12-15 16:56:10 +0000 (Mon, 15 Dec 2008
besides that memory leak is not that appropriate here, since lot of 
allocated memory at startup is not freed in case of error and kamailio 
does not start (like cfg file parsing and fixups) -- memory manager 
frees all of it, the allocation of name in that function is not checked 
against NULL, so if it fails, then will core dump.

For compatibility with old/strict c compilers, variables have to be 
defined at beginning of the function (or of a block).

Cheers,
Daniel


-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list