fixed Bug #4973 Memory is not released when HEAP table is dropped

parent e228547a
...@@ -264,7 +264,8 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd, ...@@ -264,7 +264,8 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd,
int ha_heap::delete_table(const char *name) 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; return error == ENOENT ? 0 : error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment