]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Found memory leak.
authorscipio <scipio>
Wed, 3 Oct 2007 02:15:16 +0000 (02:15 +0000)
committerscipio <scipio>
Wed, 3 Oct 2007 02:15:16 +0000 (02:15 +0000)
tos/lib/net/ctp/CtpForwardingEngineP.nc

index e7cb53cee2fd75c785d2da1b8f0d07a6f5c5fa5e..55893c7c9b0b950212650405eae705f814f2d174 100644 (file)
@@ -440,6 +440,10 @@ implementation {
       if (call SentCache.lookup(qe->msg)) {
         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;
       }