Author: cgutman
Date: Mon Aug 4 11:46:53 2008
New Revision: 35107
URL:
http://svn.reactos.org/svn/reactos?rev=35107&view=rev
Log:
- Fix more memory leaks
Modified:
branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c
Modified: branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/lib/drivers…
==============================================================================
--- branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] Mon Aug
4 11:46:53 2008
@@ -89,8 +89,10 @@
if( Status == STATUS_PENDING ) {
InsertHeadList( &Connection->ListenRequest, &Bucket->Entry );
break;
- } else
+ } else {
Complete( Bucket->Request.RequestContext, Status, 0 );
+ PoolFreeBuffer( Bucket );
+ }
}
}
@@ -141,6 +143,7 @@
Complete( Bucket->Request.RequestContext,
STATUS_SUCCESS, Received );
+ PoolFreeBuffer( Bucket );
} else if( Status == STATUS_PENDING ) {
InsertHeadList
( &Connection->ReceiveRequest, &Bucket->Entry );
@@ -150,6 +153,7 @@
("Completing Receive request: %x %x\n",
Bucket->Request, Status));
Complete( Bucket->Request.RequestContext, Status, 0 );
+ PoolFreeBuffer( Bucket );
}
}
}
@@ -198,6 +202,7 @@
Complete( Bucket->Request.RequestContext,
STATUS_SUCCESS, Sent );
+ PoolFreeBuffer( Bucket );
} else if( Status == STATUS_PENDING ) {
InsertHeadList
( &Connection->SendRequest, &Bucket->Entry );
@@ -207,6 +212,7 @@
("Completing Send request: %x %x\n",
Bucket->Request, Status));
Complete( Bucket->Request.RequestContext, Status, 0 );
+ PoolFreeBuffer( Bucket );
}
}
}