From c1ab560c3dcc9b7060d90baffb4d6551203d2cc0 Mon Sep 17 00:00:00 2001 From: "monty@tik.mysql.fi" <> Date: Tue, 5 Mar 2002 17:38:16 +0200 Subject: Corrected fix for not freed memory when using corrupted tables --- sql/table.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/table.cc') diff --git a/sql/table.cc b/sql/table.cc index ce7d185a7a1..7510e6bcce8 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -573,6 +573,7 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag, delete outparam->file; outparam->file=0; // For easyer errorchecking outparam->db_stat=0; + hash_free(&outparam->name_hash); free_root(&outparam->mem_root,MYF(0)); my_free(outparam->table_name,MYF(MY_ALLOW_ZERO_PTR)); DBUG_RETURN (error); @@ -600,6 +601,7 @@ int closefrm(register TABLE *table) } delete table->file; table->file=0; /* For easyer errorchecking */ + hash_free(&outparam->name_hash); free_root(&table->mem_root,MYF(0)); DBUG_RETURN(error); } -- cgit v1.2.1