Move SimObject python files alongside the C++ and fix
[gem5.git] / src / cpu / o3 / dep_graph.hh
index 3659b1a37e0e886a3ed43829e1002725001fc48f..c19fd0abff4a9fcc8683191e25fd54c33b59f1d4 100644 (file)
@@ -68,6 +68,8 @@ class DependencyGraph
         : numEntries(0), memAllocCounter(0), nodesTraversed(0), nodesRemoved(0)
     { }
 
+    ~DependencyGraph();
+
     /** Resize the dependency graph to have num_entries registers. */
     void resize(int num_entries);
 
@@ -120,6 +122,12 @@ class DependencyGraph
     uint64_t nodesRemoved;
 };
 
+template <class DynInstPtr>
+DependencyGraph<DynInstPtr>::~DependencyGraph()
+{
+    delete [] dependGraph;
+}
+
 template <class DynInstPtr>
 void
 DependencyGraph<DynInstPtr>::resize(int num_entries)