style: use hash_xinsert

* gnulib: Update to get hash_xinsert.
Use it where appropriate.
This commit is contained in:
Akim Demaille
2020-05-17 12:00:02 +02:00
parent ac3b6c18a5
commit 4590071287
8 changed files with 22 additions and 34 deletions

View File

@@ -680,8 +680,7 @@ ssb_append (search_state *ss)
search_state_free (ss);
return;
}
if (!hash_insert (visited, ss))
xalloc_die ();
hash_xinsert (visited, ss);
// if states are only referenced by the visited set,
// their contents should be freed as we only need
// the metadata necessary to compute a hash.