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:
parent
dc37b03439
commit
c01c5e971b
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue