Cleanup dh_hostkey_t, fix some memory leaks.