ARM: Fix a memory leak with the table walker.
authorAli Saidi <Ali.Saidi@ARM.com>
Fri, 19 Aug 2011 20:08:05 +0000 (15:08 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Fri, 19 Aug 2011 20:08:05 +0000 (15:08 -0500)
src/arch/arm/table_walker.cc

index c0c177e8578be7fbce90a68da8727c49c75478d7..62b22472ba85c2d877c72571cf031a020c51121f 100644 (file)
@@ -663,7 +663,7 @@ TableWalker::doL1DescriptorWrapper()
         currState->req = NULL;
         currState->tc = NULL;
         currState->delayed = false;
-
+        delete currState;
     }
     else if (!currState->delayed) {
         // delay is not set so there is no L2 to do