naren0nindiatimes / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
0 stars 0 forks source link

Memory Leaks : When check out some unknow critical option Libcoap allocate memory but never free #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. coap_dispatch receive a packet contain some unknow critical options
2. coap_dispatch function check out these option 
3. allocate memory to a pdu but never free it and never sent this pdu

code : support/sdk/c/coap/net.c line 586 - 619

Original issue reported on code.google.com by wangj...@gmail.com on 12 Aug 2011 at 9:04

GoogleCodeExporter commented 8 years ago
Assigning it to Om so he can assign it to the right COAP developer.

Original comment by philip.l...@gmail.com on 22 Aug 2011 at 11:49

GoogleCodeExporter commented 8 years ago
Should be fixed in r5698. Removed the #ifdef's for TinyOS, so that libcoap 
sends the appropriate error message back over blip's sockets and delete pdu as 
done originally in libcoap.

Please check if it is fixed for you.

Original comment by marku...@gmail.com on 23 Aug 2011 at 8:50

GoogleCodeExporter commented 8 years ago
Closing because the issue has been addressed.

Original comment by gnaw...@gmail.com on 25 Aug 2011 at 1:32