diff options
author | Joel Hestness <jthestness@gmail.com> | 2015-09-29 09:28:25 -0500 |
---|---|---|
committer | Joel Hestness <jthestness@gmail.com> | 2015-09-29 09:28:25 -0500 |
commit | 7b70fa02aef5d38d1d5b583193cb1577f050d937 (patch) | |
tree | ef7987099090197884dcd97f6ae1d770cb58c458 | |
parent | 501705eaf0612ead7a1f4216d10158dd09eca017 (diff) | |
download | gem5-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.
-rw-r--r-- | src/mem/ruby/slicc_interface/AbstractController.cc | 1 |
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; } |