1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00
embedded library
missed memory freeing added
This commit is contained in:
hf@deer.(none)
2003-09-19 14:17:55 +05:00
parent cda32e123c
commit 0868446b3e
3 changed files with 14 additions and 0 deletions

View File

@ -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)