Move link_hash_table_free functions earlier