summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authormonty@tik.mysql.fi <>2002-03-05 17:38:16 +0200
committermonty@tik.mysql.fi <>2002-03-05 17:38:16 +0200
commitc1ab560c3dcc9b7060d90baffb4d6551203d2cc0 (patch)
tree4c30c14208ff66b6c3278246e096cfb9df057c36 /sql/table.cc
parentcde0896521c03deacf68cde933d2322ff886fc87 (diff)
downloadmariadb-git-c1ab560c3dcc9b7060d90baffb4d6551203d2cc0.tar.gz
Corrected fix for not freed memory when using corrupted tables
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc2
1 files changed, 2 insertions, 0 deletions
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);
}