From 7b70fa02aef5d38d1d5b583193cb1577f050d937 Mon Sep 17 00:00:00 2001 From: Joel Hestness Date: Tue, 29 Sep 2015 09:28:25 -0500 Subject: [PATCH] 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. --- src/mem/ruby/slicc_interface/AbstractController.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mem/ruby/slicc_interface/AbstractController.cc b/src/mem/ruby/slicc_interface/AbstractController.cc index 370781780..93fe50c88 100644 --- a/src/mem/ruby/slicc_interface/AbstractController.cc +++ b/src/mem/ruby/slicc_interface/AbstractController.cc @@ -328,6 +328,7 @@ AbstractController::recvTimingResp(PacketPtr pkt) } getMemoryQueue()->enqueue(msg, clockEdge(), cyclesToTicks(Cycles(1))); + delete pkt->req; delete pkt; } -- 2.30.2