summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvva@eagle.mysql.r18.ru <>2004-08-11 18:55:12 +0500
committervva@eagle.mysql.r18.ru <>2004-08-11 18:55:12 +0500
commite1f264748cd0723522d06aef45fd41d617d25966 (patch)
tree448cd4c8ac7299c7a73b0ee477b75e039dc270c7
parente228547a61d958f9702ac59ac06ef41116910d55 (diff)
downloadmariadb-git-e1f264748cd0723522d06aef45fd41d617d25966.tar.gz
fixed Bug #4973 Memory is not released when HEAP table is dropped
-rw-r--r--sql/ha_heap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index eb4bf517374..5aa42fa1beb 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -264,7 +264,8 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd,
int ha_heap::delete_table(const char *name)
{
- int error=heap_delete_table(name);
+ char buff[FN_REFLEN];
+ int error= heap_delete_table(fn_format(buff,name,"","",4+2));
return error == ENOENT ? 0 : error;
}