1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed valgrind warnings in delete_dynamic().

Join_plan_state performs out-of-API initialization of DYNAMIC_ARRAY. This is
done to postpone actual array initialization till first use, whilst retaining
the right to call delete_dynamic().

Since delete_dynamic() now checks DYNAMIC_ARRAY::malloc_flags it should be
initialized it as well.
This commit is contained in:
Sergey Vojtovich
2014-12-05 16:38:48 +04:00
parent 78564373fe
commit 8fb2c80fdb

View File

@ -903,6 +903,7 @@ protected:
{
keyuse.elements= 0;
keyuse.buffer= NULL;
keyuse.malloc_flags= 0;
best_positions= 0; /* To detect errors */
error= my_multi_malloc(MYF(MY_WME),
&best_positions,