lwip-users
[Top][All Lists]
Advanced

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

Re: Re: [lwip-users] memory leak when sending snmp trap


From: Kieran Mansley
Subject: Re: Re: [lwip-users] memory leak when sending snmp trap
Date: Thu, 11 Jun 2009 16:19:05 +0100

On Thu, 2009-06-11 at 11:16 -0400, Alexandre Malo wrote:
> I found one of the leak. There is still an other one because approx
> 3000 trap later I have a memory fail.
>  
> I changed 
>     vb->value = trapToSend->value;
>     
>    ...
>  
>     vb->value = NULL;
> To
>    strcpy(vb->value,trapToSend->value);
>    and remove vb->value = NULL
>  
>  
> vb->value was prealocated when doing snmp_varbind_alloc. Thats why we
> must do a 

Could you file a bug for this on the lwIP savannah site so that it
doesn't get forgotten?  

Thanks

Kieran





reply via email to

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