summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-01-17 12:57:10 +0000
committerBruno Haible <bruno@clisp.org>2003-01-17 12:57:10 +0000
commit10a159ea9b35f707def257b67de3be1bb7ea0a97 (patch)
treef3a9eadca9c3a8e806131b83faa17e97eecaba1c
parent826e4c8ba1c191d70d57995bbc2b2646bfd95eff (diff)
downloadgperf-10a159ea9b35f707def257b67de3be1bb7ea0a97.tar.gz
Free allocated arrays.
-rw-r--r--ChangeLog7
-rw-r--r--src/bool-array.cc1
-rw-r--r--src/search.cc2
3 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 20c2ecd..c90e338 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-11-07 Bruno Haible <bruno@clisp.org>
+
+ * src/bool-array.cc (Bool_Array::~Bool_Array): Free _storage_array.
+ * src/search.cc (Search::~Search): Free _union_set, _determined.
+
+ * tests/Makefile.in (check-test): Don't redirect stderr.
+
2002-11-05 Bruno Haible <bruno@clisp.org>
* src/keyword-list.h (mergesort_list): New declarations.
diff --git a/src/bool-array.cc b/src/bool-array.cc
index 64a4fd0..a10f22d 100644
--- a/src/bool-array.cc
+++ b/src/bool-array.cc
@@ -35,6 +35,7 @@ Bool_Array::~Bool_Array ()
fprintf (stderr, "\ndumping boolean array information\n"
"size = %d\niteration number = %d\nend of array dump\n",
_size, _iteration_number);
+ delete[] _storage_array;
}
#ifndef __OPTIMIZE__
diff --git a/src/search.cc b/src/search.cc
index acd913b..8e04d59 100644
--- a/src/search.cc
+++ b/src/search.cc
@@ -769,7 +769,9 @@ Search::optimize ()
Search::~Search ()
{
+ delete[] _union_set;
delete _collision_detector;
+ delete[] _determined;
if (option[DEBUG])
{
fprintf (stderr, "\ndumping occurrence and associated values tables\n");