1
0
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:
Bruno Haible
2003-01-17 12:57:10 +00:00
parent 826e4c8ba1
commit 10a159ea9b
3 changed files with 10 additions and 0 deletions

View File

@@ -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> 2002-11-05 Bruno Haible <bruno@clisp.org>
* src/keyword-list.h (mergesort_list): New declarations. * src/keyword-list.h (mergesort_list): New declarations.

View File

@@ -35,6 +35,7 @@ Bool_Array::~Bool_Array ()
fprintf (stderr, "\ndumping boolean array information\n" fprintf (stderr, "\ndumping boolean array information\n"
"size = %d\niteration number = %d\nend of array dump\n", "size = %d\niteration number = %d\nend of array dump\n",
_size, _iteration_number); _size, _iteration_number);
delete[] _storage_array;
} }
#ifndef __OPTIMIZE__ #ifndef __OPTIMIZE__

View File

@@ -769,7 +769,9 @@ Search::optimize ()
Search::~Search () Search::~Search ()
{ {
delete[] _union_set;
delete _collision_detector; delete _collision_detector;
delete[] _determined;
if (option[DEBUG]) if (option[DEBUG])
{ {
fprintf (stderr, "\ndumping occurrence and associated values tables\n"); fprintf (stderr, "\ndumping occurrence and associated values tables\n");