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 
copy.

Now what the other bug.. I dont know

Alex
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to