#At file:///mnt/raid/alik/MySQL/bzr/6.0-rt-build/
2700 Alexander Nozdrin 2008-08-12
Fix memory leak.
modified:
sql/field.h
sql/sp_head.cc
per-file messages:
sql/field.h
Inheret Send_field from Sql_alloc.
sql/sp_head.cc
Create instance of Send_field on memory root.
=== modified file 'sql/field.h'
--- a/sql/field.h 2008-08-10 14:49:52 +0000
+++ b/sql/field.h 2008-08-12 16:18:45 +0000
@@ -2123,7 +2123,7 @@ public:
A class for sending info to the client
*/
-class Send_field {
+class Send_field :public Sql_alloc {
public:
const char *db_name;
const char *table_name,*org_table_name;
=== modified file 'sql/sp_head.cc'
--- a/sql/sp_head.cc 2008-08-07 17:52:43 +0000
+++ b/sql/sp_head.cc 2008-08-12 16:18:45 +0000
@@ -2013,7 +2013,7 @@ sp_head::execute_procedure(THD *thd, Lis
break;
}
- Send_field *out_param_info= new Send_field();
+ Send_field *out_param_info= new (thd->mem_root) Send_field();
nctx->get_item(i)->make_field(out_param_info);
out_param_info->db_name= m_db.str;
out_param_info->table_name= m_name.str;
| Thread |
|---|
| • bzr commit into mysql-6.0-runtime branch (alik:2700) | Alexander Nozdrin | 12 Aug |