From 10a159ea9b35f707def257b67de3be1bb7ea0a97 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 17 Jan 2003 12:57:10 +0000 Subject: Free allocated arrays. --- ChangeLog | 7 +++++++ src/bool-array.cc | 1 + src/search.cc | 2 ++ 3 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 20c2ecd..c90e338 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-11-07 Bruno Haible + + * 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 * 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"); -- cgit v1.2.1