summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorSergey Vojtovich <sergey.vojtovich@oracle.com>2011-11-10 10:43:34 +0400
committerSergey Vojtovich <sergey.vojtovich@oracle.com>2011-11-10 10:43:34 +0400
commit7929464b5c50285a168ed8acec2f2444b06203f6 (patch)
tree58106c0d3a222fb5a988c888d87f9d2c08a23d70 /sql/sql_class.h
parent9c0434a360448902b40d7b209c4a805e29d1644c (diff)
downloadmariadb-git-7929464b5c50285a168ed8acec2f2444b06203f6.tar.gz
BUG#11763882 - 56652: VALGRIND WARNINGS FOR MEMORY LEAK IN
ALTER TABLE AND/OR PLUGIN/SEMISYNC If a plugin was uninstalled, thread local values for plugin variables of string type with PLUGIN_VAR_MEMALLOC flag were not freed. With this patch these variables are freed when thread is done (like all other variables).
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 1a51b66f8a6..36091546ff4 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -410,8 +410,9 @@ typedef struct system_variables
*/
ulong dynamic_variables_version;
char* dynamic_variables_ptr;
- uint dynamic_variables_head; /* largest valid variable offset */
- uint dynamic_variables_size; /* how many bytes are in use */
+ uint dynamic_variables_head; /* largest valid variable offset */
+ uint dynamic_variables_size; /* how many bytes are in use */
+ LIST *dynamic_variables_allocs; /* memory hunks for PLUGIN_VAR_MEMALLOC */
ulonglong max_heap_table_size;
ulonglong tmp_table_size;