[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/ctp
CtpForwardingEngineP.nc, 1.7, 1.8
Phil Levis
scipio at users.sourceforge.net
Tue Oct 2 19:15:18 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/ctp
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5975
Modified Files:
CtpForwardingEngineP.nc
Log Message:
Found memory leak.
Index: CtpForwardingEngineP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CtpForwardingEngineP.nc 13 Sep 2007 23:10:18 -0000 1.7
--- CtpForwardingEngineP.nc 3 Oct 2007 02:15:16 -0000 1.8
***************
*** 441,444 ****
--- 441,448 ----
call CollectionDebug.logEvent(NET_C_FE_DUPLICATE_CACHE_AT_SEND);
call SendQueue.dequeue();
+ if (call MessagePool.put(qe->msg) != SUCCESS)
+ call CollectionDebug.logEvent(NET_C_FE_PUT_MSGPOOL_ERR);
+ if (call QEntryPool.put(qe) != SUCCESS)
+ call CollectionDebug.logEvent(NET_C_FE_PUT_QEPOOL_ERR);
post sendTask();
return;
More information about the Tinyos-2-commits
mailing list