[Freeassociation-devel] Memory leak patches 1 of many

dothebart room_freeassociation-devel at uncensored.citadel.org
Fri May 29 09:32:41 PDT 2009


Hy alvaro, looking good for me except one conceptional thing...  

In order to stay clean C also on older compilers or warningless in more
strict modes of gcc, could you please not create code before declaration?  

so please make it like that:  

declaration struct;  

pointer_check  

struct = malloc()  

   

if you add  -pedantic to gcc's CFLAGS it will warn you about it.  

for the rest it looks ok at first glance.  

   

Wilfried Goesgens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/libical-devel/attachments/20090529/f45fd2d5/attachment.html>


More information about the libical-devel mailing list