(concord_name_table_grow): Release old `table->data'.
authorMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 16 Apr 2013 08:49:30 +0000 (17:49 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 16 Apr 2013 08:49:30 +0000 (17:49 +0900)
name.c

diff --git a/name.c b/name.c
index 90cde63..da8b7d5 100644 (file)
--- a/name.c
+++ b/name.c
@@ -194,6 +194,7 @@ concord_name_table_grow (CONCORD_NAME_TABLE* table)
            }
        }
     }
+  free (table->data);
   table->size = new_table->size;
   table->data = new_table->data;
   free (new_table);