1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
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:
unknown
2003-09-19 14:17:55 +05:00
parent 83e8881a5a
commit 6e92247842
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)