diff options
author | hf@deer.(none) <> | 2003-09-19 14:17:55 +0500 |
---|---|---|
committer | hf@deer.(none) <> | 2003-09-19 14:17:55 +0500 |
commit | 0868446b3e457e1ce32f63cadff4ef4c8b17344a (patch) | |
tree | d7b5e23550a3b56c93fc4abe69bcccc92d92c10e /libmysqld/lib_sql.cc | |
parent | cda32e123c5261a331d32b09397214a2b7686244 (diff) | |
download | mariadb-git-0868446b3e457e1ce32f63cadff4ef4c8b17344a.tar.gz |
SCRUM
embedded library
missed memory freeing added
Diffstat (limited to 'libmysqld/lib_sql.cc')
-rw-r--r-- | libmysqld/lib_sql.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 24ef3b76c0e..179bbaeec91 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -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) |