MDEV-29628 Memory leak after CREATE OR REPLACE with foreign key

MDEV-28933 added a condition to avoid keeping cached foreign keys when
renaming into temporary table. Such foreign keys must be freed.
This commit is contained in:
Aleksey Midenkov 2022-09-25 00:08:35 +03:00
parent cb583b2f1b
commit c579d66ba6

View file

@ -1804,6 +1804,8 @@ dict_table_rename_in_cache(
foreign->referenced_table
->referenced_set.insert(foreign);
}
} else {
dict_foreign_free(foreign);
}
}