lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [lwip-devel] Memory leak for timeouts


From: Frédéric BERNON
Subject: RE : [lwip-devel] Memory leak for timeouts
Date: Tue, 6 Nov 2007 18:19:08 +0100

Since this function is specific to your port, and since...

#include "arch/sys_arch.h"

...is already included in "sys.h", so, adding the declaration in your 
sys_arch.h should be enought.

  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Marc CHALAND
Envoyé : mardi 6 novembre 2007 18:02
À : lwip-devel
Objet : Re: [lwip-devel] Memory leak for timeouts


2007/11/6, Goldschmidt Simon <address@hidden>:
>
> As you malloc the struct yourself (in your port) you have to provide 
> the thread-exit function yourself (or in your port), which is not a 
> thing every port (or even the core) needs.

OK, you confirm that we should implement a thread exit function which frees 
allocated memory. As this memory is allocated into sys_arch.c (sys_timeouts), I 
thought it is better to put the free into the same file. As a consequence I 
thought it should be declared into sys.h in a same maner as sys_thread_new.

What do you think about it ?

Marc


_______________________________________________
lwip-devel mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-devel

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]