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 94505fb7e2
commit 914e713d07
3 changed files with 13 additions and 3 deletions

View File

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