1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fixed memory leaks. alias.test now runs clean with valgrind

This commit is contained in:
Michael Widenius
2013-06-20 14:49:25 +03:00
parent f62f4bd563
commit c46ce32cfb
11 changed files with 13 additions and 12 deletions

View File

@ -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));
}
/**