diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2004-08-11 18:55:12 +0500 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2004-08-11 18:55:12 +0500 |
commit | 5871ce9a69a3f69d3cab3fd4e4bb555b18062aea (patch) | |
tree | 448cd4c8ac7299c7a73b0ee477b75e039dc270c7 | |
parent | 53fbad686e4ef4e781a8d1f8870a4ef6f3b2e10a (diff) | |
download | mariadb-git-5871ce9a69a3f69d3cab3fd4e4bb555b18062aea.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
-rw-r--r-- | sql/ha_heap.cc | 3 |
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; } |