summaryrefslogtreecommitdiff
path: root/src/mem/ruby
diff options
context:
space:
mode:
authorJoel Hestness <jthestness@gmail.com>2015-09-29 09:28:25 -0500
committerJoel Hestness <jthestness@gmail.com>2015-09-29 09:28:25 -0500
commit7b70fa02aef5d38d1d5b583193cb1577f050d937 (patch)
treeef7987099090197884dcd97f6ae1d770cb58c458 /src/mem/ruby
parent501705eaf0612ead7a1f4216d10158dd09eca017 (diff)
downloadgem5-7b70fa02aef5d38d1d5b583193cb1577f050d937.tar.xz
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.
Diffstat (limited to 'src/mem/ruby')
-rw-r--r--src/mem/ruby/slicc_interface/AbstractController.cc1
1 files changed, 1 insertions, 0 deletions
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;
}