mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
SCRUM
embedded library missed memory freeing added libmysqld/embedded_priv.h: declaration added libmysqld/lib_sql.cc: implementation added libmysqld/libmysqld.c: mysql->thd releasing
This commit is contained in:
@ -474,6 +474,16 @@ void *create_embedded_thd(int client_flag, char *db)
|
||||
return thd;
|
||||
}
|
||||
|
||||
void free_embedded_thd(MYSQL *mysql)
|
||||
{
|
||||
THD *thd= (THD*)mysql->thd;
|
||||
if (!thd)
|
||||
return;
|
||||
if (thd->data)
|
||||
free_rows(thd->data);
|
||||
delete thd;
|
||||
}
|
||||
|
||||
C_MODE_END
|
||||
|
||||
bool Protocol::send_fields(List<Item> *list, uint flag)
|
||||
|
Reference in New Issue
Block a user