From 94b0a6bec6a0d3301e28385ee3fdf4c19f67b866 Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Tue, 10 Nov 2009 05:00:35 +0000 Subject: [PATCH] Ensure that the hash_table messages show useful information. git-svn-id: http://opkg.googlecode.com/svn/trunk@275 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/opkg_conf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index ce68ae1..4b2ad03 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -370,12 +370,6 @@ void opkg_conf_deinit(opkg_conf_t *conf) pkg_src_list_deinit(&conf->pkg_src_list); pkg_dest_list_deinit(&conf->pkg_dest_list); nv_pair_list_deinit(&conf->arch_list); - if (&conf->pkg_hash) - pkg_hash_deinit(&conf->pkg_hash); - if (&conf->file_hash) - hash_table_deinit(&conf->file_hash); - if (&conf->obs_file_hash) - hash_table_deinit(&conf->obs_file_hash); opkg_conf_free_string(&conf->offline_root); opkg_conf_free_string(&conf->offline_root_path); @@ -425,9 +419,15 @@ void opkg_conf_deinit(opkg_conf_t *conf) } opkg_message(conf, OPKG_DEBUG, "hash_table[%s] n_buckets=%d n_elements=%d max_conflicts=%d n_conflicts=%d\n", hash->name, hash->n_entries, hash->n_elements, c, n_conflicts); - hash_table_deinit(hash); } } + + if (&conf->pkg_hash) + pkg_hash_deinit(&conf->pkg_hash); + if (&conf->file_hash) + hash_table_deinit(&conf->file_hash); + if (&conf->obs_file_hash) + hash_table_deinit(&conf->obs_file_hash); } static int opkg_conf_set_default_dest(opkg_conf_t *conf, -- 2.25.1