d7a4bbc
diff -up patch-2.6.1/gl/lib/hash.c.coverity-leak patch-2.6.1/gl/lib/hash.c
d7a4bbc
--- patch-2.6.1/gl/lib/hash.c.coverity-leak	2009-11-02 19:09:57.000000000 +0000
d7a4bbc
+++ patch-2.6.1/gl/lib/hash.c	2011-05-16 15:13:49.231998981 +0100
d7a4bbc
@@ -857,7 +857,10 @@ hash_rehash (Hash_table *table, size_t c
d7a4bbc
 		  struct hash_entry *new_entry = allocate_entry (new_table);
d7a4bbc
 
d7a4bbc
 		  if (new_entry == NULL)
d7a4bbc
-		    return false;
d7a4bbc
+		    {
d7a4bbc
+		      free (new_table);
d7a4bbc
+		      return false;
d7a4bbc
+		    }
d7a4bbc
 
d7a4bbc
 		  new_entry->data = data;
d7a4bbc
 		  new_entry->next = new_bucket->next;