summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-01-27 13:46:47 +0400
committerunknown <hf@deer.(none)>2004-01-27 13:46:47 +0400
commitc131f2c96d9cff7649994f631dea7d9017b175a7 (patch)
tree6b057ed2cd82a6da7910f989cbadbd78ce2cf0bc /sql/sql_class.cc
parent285ce2ffcef12a11c34b79e4fa5def42e5f76c46 (diff)
downloadmariadb-git-c131f2c96d9cff7649994f631dea7d9017b175a7.tar.gz
bugfix to #1224
code slightly modified with Monty's suggestions libmysqld/lib_sql.cc: copying of pointers replaced with my_strdup()-s sql/sql_class.cc: this code should work anyway now
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index ce30c6f3d09..7b3d1fd3cd2 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -323,13 +323,11 @@ THD::~THD()
#endif
DBUG_PRINT("info", ("freeing host"));
-#ifndef EMBEDDED_LIBRARY
if (host != my_localhost) // If not pointer to constant
safeFree(host);
if (user != delayed_user)
safeFree(user);
safeFree(ip);
-#endif
safeFree(db);
free_root(&warn_root,MYF(0));
free_root(&transaction.mem_root,MYF(0));