From 501705eaf0612ead7a1f4216d10158dd09eca017 Mon Sep 17 00:00:00 2001 From: Joel Hestness Date: Tue, 29 Sep 2015 09:25:29 -0500 Subject: [PATCH] ruby: RubyMemoryControl delete requests Changes to the RubyMemoryControl removed the dequeue function, which deleted MemoryNode instances. This results in leaked MemoryNode instances. Correctly delete these instances. --- src/mem/ruby/structures/RubyMemoryControl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mem/ruby/structures/RubyMemoryControl.cc b/src/mem/ruby/structures/RubyMemoryControl.cc index 452606451..5feb9348b 100644 --- a/src/mem/ruby/structures/RubyMemoryControl.cc +++ b/src/mem/ruby/structures/RubyMemoryControl.cc @@ -527,6 +527,8 @@ RubyMemoryControl::issueRequest(int bank) m_busBusyCounter_Write = m_basic_bus_busy_time; m_busBusyCounter_ReadNewRank = m_basic_bus_busy_time; } + + delete req; } // executeCycle: This function is called once per memory clock cycle -- 2.30.2