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 cc96d8ff98
commit 75c7a52a31
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 ();
}