ruby: RubyMemoryControl delete requests
authorJoel Hestness <jthestness@gmail.com>
Tue, 29 Sep 2015 14:25:29 +0000 (09:25 -0500)
committerJoel Hestness <jthestness@gmail.com>
Tue, 29 Sep 2015 14:25:29 +0000 (09:25 -0500)
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

index 452606451c5597fd1f3c763b1e95bf3bc3e7bc2f..5feb9348b77cc4017a1c8ec33b25be011be98719 100644 (file)
@@ -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