diff --git a/storage/innobase/dict/dict0dict.cc b/storage/innobase/dict/dict0dict.cc index 90c2d786eb9..59daa6396a3 100644 --- a/storage/innobase/dict/dict0dict.cc +++ b/storage/innobase/dict/dict0dict.cc @@ -1804,6 +1804,8 @@ dict_table_rename_in_cache( foreign->referenced_table ->referenced_set.insert(foreign); } + } else { + dict_foreign_free(foreign); } }