hash: check insertion for memory exhaustion.

* src/muscle-tab.c (muscle_insert, muscle_grow)
	* src/state.c (state_hash_insert): Check the return value of
	hash_insert.
This commit is contained in:
Akim Demaille
2009-06-11 14:42:12 +02:00
parent a887366955
commit 04d1e39dd3
3 changed files with 13 additions and 3 deletions

View File

@@ -379,7 +379,8 @@ state_hash_free (void)
void
state_hash_insert (state *s)
{
hash_insert (state_table, s);
if (!hash_insert (state_table, s))
xalloc_die ();
}