1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Use a hash table in compute_partition, part 2.

* src/search.cc (Search::compute_partition): Fix a memory leak.
This commit is contained in:
Bruno Haible
2025-04-20 10:39:32 +02:00
parent 70899c856b
commit e63c9b209e
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2025-04-20 Bruno Haible <bruno@clisp.org>
Use a hash table in compute_partition, part 2.
* src/search.cc (Search::compute_partition): Fix a memory leak.
2025-04-19 Bruno Haible <bruno@clisp.org>
Optimize: Test large equivalence classes for conflict first.

View File

@@ -1078,6 +1078,7 @@ Search::compute_partition (bool *undetermined) const
/* Add the keyword to the equivalence class number pindex. */
partition->_equclasses.get_at(pindex)._keywords.add_last (keyword);
}
map.free ();
}
/* Sort the equivalence classes according to decreasing size.