ruby: Fix memory leak in AbstractController
Recent changes to memory access queuing allocate requests for packets sent to memory controllers, but did not free the requests. Delete them to avoid leaks.
This commit is contained in:
parent
501705eaf0
commit
7b70fa02ae
1 changed files with 1 additions and 0 deletions
|
@ -328,6 +328,7 @@ AbstractController::recvTimingResp(PacketPtr pkt)
|
|||
}
|
||||
|
||||
getMemoryQueue()->enqueue(msg, clockEdge(), cyclesToTicks(Cycles(1)));
|
||||
delete pkt->req;
|
||||
delete pkt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue