summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-01-28 08:38:28 +0200
committermonty@mashka.mysql.fi <>2003-01-28 08:38:28 +0200
commit689578a0997f54c590bcf4791e30710602851bc4 (patch)
treeb916d4acfbe4f32ab06b052fd06c072f858bdce1 /sql/sql_udf.cc
parent1bdd1d0626fdb8f858a3c4bf82e0064ee19b042d (diff)
downloadmariadb-git-689578a0997f54c590bcf4791e30710602851bc4.tar.gz
Fixes for Netware
Call pthread_mutex_destroy() on not used mutex. Changed comments in .h and .c files from // -> /* */ Added detection of mutex on which one didn't call pthread_mutex_destroy() Fixed bug in create_tmp_field() which causes a memory overrun in queries that uses "ORDER BY constant_expression" Added optimisation for ORDER BY NULL
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 937d1e52656..8ac313e1127 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -229,6 +229,11 @@ void udf_free()
}
hash_free(&udf_hash);
free_root(&mem,MYF(0));
+ if (initialized)
+ {
+ initialized= 0;
+ pthread_mutex_destroy(&THR_LOCK_udf);
+ }
DBUG_VOID_RETURN;
}