diff options
author | Monty <monty@mariadb.org> | 2016-04-28 11:28:02 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2016-04-28 16:36:02 +0300 |
commit | fabeab781920dfcaf8e606708ba2c6812f6ae5d8 (patch) | |
tree | d3a17702cbc67ed2d31f820e4b2f0988436e86b6 /sql/sql_array.h | |
parent | dafed5b51591ad85ef7724156f135d5be8fe698d (diff) | |
download | mariadb-git-fabeab781920dfcaf8e606708ba2c6812f6ae5d8.tar.gz |
Cleanups
- Avoid some realloc() during startup
- Ensure that file_key_management_plugin frees it's memory early, even if
it's linked statically.
- Fixed compiler warnings from unused variables and missing destructors
- Fixed wrong indentation
Diffstat (limited to 'sql/sql_array.h')
-rw-r--r-- | sql/sql_array.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_array.h b/sql/sql_array.h index 7d6854690e7..bbaa653b177 100644 --- a/sql/sql_array.h +++ b/sql/sql_array.h @@ -239,6 +239,11 @@ public: delete_dynamic(&array); } + void free_memory() + { + delete_dynamic(&array); + } + typedef int (*CMP_FUNC)(const Elem *el1, const Elem *el2); void sort(CMP_FUNC cmp_func) |