summaryrefslogtreecommitdiff
path: root/sql/sql_array.h
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-06-20 14:49:25 +0300
committerMichael Widenius <monty@askmonty.org>2013-06-20 14:49:25 +0300
commitc46ce32cfbec0b3c21cb0e5b6bca91bd437130cf (patch)
tree46141a35f7f0b7edc9a1627697a9a301e132eb61 /sql/sql_array.h
parentf62f4bd563a96ddd78b78d563e4d4cf5ad27aae1 (diff)
downloadmariadb-git-c46ce32cfbec0b3c21cb0e5b6bca91bd437130cf.tar.gz
Fixed memory leaks. alias.test now runs clean with valgrind
Diffstat (limited to 'sql/sql_array.h')
-rw-r--r--sql/sql_array.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_array.h b/sql/sql_array.h
index baed3687215..71377b91ef9 100644
--- a/sql/sql_array.h
+++ b/sql/sql_array.h
@@ -92,6 +92,8 @@ private:
/*
A typesafe wrapper around DYNAMIC_ARRAY
+
+ TODO: Change creator to take a THREAD_SPECIFIC option.
*/
template <class Elem> class Dynamic_array
@@ -106,7 +108,7 @@ public:
void init(uint prealloc=16, uint increment=16)
{
my_init_dynamic_array(&array, sizeof(Elem), prealloc, increment,
- MYF(MY_THREAD_SPECIFIC));
+ MYF(0));
}
/**