Delete packets when we're done with them.

--HG--
extra : convert_revision : b8894d26e1ca7a6c9b736500accdaa53bfb09558
This commit is contained in:
Steve Reinhardt
2007-07-03 00:40:31 -04:00
parent 4b68652c87
commit 4738649e32

View File

@@ -705,6 +705,8 @@ Cache<TagStore>::handleResponse(PacketPtr pkt)
deallocate = true;
}
delete pkt;
if (deallocate) {
mq->deallocate(mshr);
if (wasFull && !mq->isFull()) {
@@ -1242,6 +1244,9 @@ Cache<TagStore>::MemSidePort::sendPacket()
waitingOnRetry = !success;
if (waitingOnRetry) {
DPRINTF(CachePort, "now waiting on a retry\n");
if (!mshr->isSimpleForward()) {
delete pkt;
}
} else {
myCache()->markInService(mshr);
}