mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Backport a patch from 6.0:
------------------------------------------------------------ revno: 2599.178.12 revision-id: alik@mysql.com-20080812161845-we7cx9f22yrghob1 committer: Alexander Nozdrin <alik@mysql.com> branch nick: 6.0-rt-build timestamp: Tue 2008-08-12 20:18:45 +0400 message: Fix memory leak. ------------------------------------------------------------
This commit is contained in:
@@ -2089,7 +2089,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;
|
||||
|
||||
@@ -2045,7 +2045,7 @@ sp_head::execute_procedure(THD *thd, List<Item> *args)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user