summaryrefslogtreecommitdiff
path: root/mysys/array.c
diff options
context:
space:
mode:
authorunknown <iggy@recycle.(none)>2007-03-20 10:34:25 -0400
committerunknown <iggy@recycle.(none)>2007-03-20 10:34:25 -0400
commit6fb66342b36d0a5e3ed3aea53b86fc6d719a9cd9 (patch)
tree93d9aa9aaeb15926dff991fab145f7461d04b631 /mysys/array.c
parent996843e51e3d9c18cc77886d3911f05ce79313b8 (diff)
downloadmariadb-git-6fb66342b36d0a5e3ed3aea53b86fc6d719a9cd9.tar.gz
Bug#23736 Pointer free error in mysqlbinlog
- Mis-matched SAFEMALLOC defines caused misleading error message. client/mysqlbinlog.cc: Bug#23736 Pointer free error in mysqlbinlog - Re-worked the Load_log_processor so that it frees it's resources before my_end is called. This is necessary because SAFEMALLOC's _my_free calls pthread_mutex_lock() using THR_LOCK_malloc which is cleaned up in my_end(). include/my_sys.h: Bug#23736 Pointer free error in mysqlbinlog - Define DYNAMIC_ARRAY beofore MY_TMPDIR - Add DYNAMIC_ARRAY to MY_TMP_DIR mysys/array.c: Bug#23736 Pointer free error in mysqlbinlog - SAFEMALLOC should not be unconditionally undef'd. mysys/mf_tempdir.c: Bug#23736 Pointer free error in mysqlbinlog - Use struct's DYNAMIC_ARRAY. - Use DYNAMIC_ARRAY:delete_dynamic function instead of my_free
Diffstat (limited to 'mysys/array.c')
-rw-r--r--mysys/array.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mysys/array.c b/mysys/array.c
index e3ebe8ddb42..4ea1946d837 100644
--- a/mysys/array.c
+++ b/mysys/array.c
@@ -15,10 +15,6 @@
/* Handling of arrays that can grow dynamicly. */
-#if defined(WIN32) || defined(__WIN__)
-#undef SAFEMALLOC /* Problems with threads */
-#endif
-
#include "mysys_priv.h"
#include "m_string.h"