summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <vva@eagle.mysql.r18.ru>2004-08-11 18:55:12 +0500
committerunknown <vva@eagle.mysql.r18.ru>2004-08-11 18:55:12 +0500
commitb0fcf80b23c52bb44e91537d69d5ae2c43a3bfe2 (patch)
tree448cd4c8ac7299c7a73b0ee477b75e039dc270c7 /sql
parentcf8a6e52b749a1a1311c31f4aad615593ba25b9e (diff)
downloadmariadb-git-b0fcf80b23c52bb44e91537d69d5ae2c43a3bfe2.tar.gz
fixed Bug #4973 Memory is not released when HEAP table is dropped
sql/ha_heap.cc: added calling fn_format(name,..) for name before heap_delete_table as it's done before heap_create fixed Bug #4973 Memory is not released when HEAP table is dropped
Diffstat (limited to 'sql')
-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;
}