summaryrefslogtreecommitdiff
path: root/storage/innobase/handler/handler0alter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/handler/handler0alter.cc')
-rw-r--r--storage/innobase/handler/handler0alter.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/innobase/handler/handler0alter.cc b/storage/innobase/handler/handler0alter.cc
index 6b3ca805872..a68a17d3401 100644
--- a/storage/innobase/handler/handler0alter.cc
+++ b/storage/innobase/handler/handler0alter.cc
@@ -8815,6 +8815,14 @@ free_and_exit:
dict_sys.lock(SRW_LOCK_CALL);
+ if (ctx->add_vcol)
+ {
+ for (ulint i = 0; i < ctx->num_to_add_vcol; i++)
+ ctx->add_vcol[i].~dict_v_col_t();
+ ctx->num_to_add_vcol= 0;
+ ctx->add_vcol= nullptr;
+ }
+
for (ulint i= 0; i < ctx->num_to_add_fk; i++)
dict_foreign_free(ctx->add_fk[i]);
/* Clear the to_be_dropped flags in the data dictionary cache.