mem: Fix missing delete of packet in DRAM access

This patch fixes a memory leak caused by not deleting packets that
require no response.
This commit is contained in:
Andreas Hansson 2013-03-18 05:22:45 -04:00
parent dc37b03439
commit c01c5e971b

View file

@ -739,6 +739,9 @@ SimpleDRAM::accessAndRespond(PacketPtr pkt)
// next tick
port.schedTimingResp(pkt, curTick() + 1);
} else {
// @todo the packet is going to be deleted, and the DRAMPacket
// is still having a pointer to it
pendingDelete.push_back(pkt);
}
DPRINTF(DRAM, "Done\n");