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:
@ -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,
|
||||
|
Reference in New Issue
Block a user