diff options
author | Colin Watson <cjwatson@debian.org> | 2018-05-29 06:38:12 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-05-29 06:38:12 +0100 |
commit | 103c463506c773e4e8327c5d67ae9309bb9f1152 (patch) | |
tree | d3f99410ee869271b5eb6a8165f831f40da0032e /libdb/db_btree.c | |
parent | c150786d1ff2966406bd052c48ccca874f6749d5 (diff) |
Remove useless if-before-free tests
* lib/hashtable.c (plain_hashtable_free): Remove; this is precisely
equivalent to free.
* lib/hashtable.h (plain_hashtable_free): Remove.
* lib/orderfiles.c (order_files): Use free rather than
plain_hashtable_free.
* libdb/db_btree.c (btree_findkey): Likewise.
* lib/pathsearch.c (pathsearch, directory_on_path): Remove useless
if-before-free.
* libdb/db_lookup.c (free_mandata_elements): Likewise.
* src/check_mandirs.c (test_manfile, count_glob_matches): Likewise.
* src/descriptions.c (free_descriptions): Likewise.
* src/lexgrog_test.c (main): Likewise.
* src/man.c (display_filesystem, display_database, get_section_list):
Likewise.
* src/manp.c (add_system_manpath): Likewise.
* src/straycats.c (check_for_stray, straycats): Likewise.
* src/ult_src.c (ult_src): Likewise.
Diffstat (limited to 'libdb/db_btree.c')
-rw-r--r-- | libdb/db_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdb/db_btree.c b/libdb/db_btree.c index fa9d86b6..fdd9b150 100644 --- a/libdb/db_btree.c +++ b/libdb/db_btree.c @@ -192,7 +192,7 @@ static datum btree_findkey (DB *db, u_int flags) } } if (!loop_check_hash) - loop_check_hash = hashtable_create (&plain_hashtable_free); + loop_check_hash = hashtable_create (&free); if (((db->seq) (db, (DBT *) &key, (DBT *) &data, flags))) { memset (&key, 0, sizeof key); |