|
From: | Alexandre Malo |
Subject: | Re: Re: [lwip-users] memory leak when sending snmp trap |
Date: | Thu, 11 Jun 2009 11:16:56 -0400 |
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
|
[Prev in Thread] | Current Thread | [Next in Thread] |