mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Free allocated arrays.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user