mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
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:
@@ -1804,6 +1804,8 @@ dict_table_rename_in_cache(
|
||||
foreign->referenced_table
|
||||
->referenced_set.insert(foreign);
|
||||
}
|
||||
} else {
|
||||
dict_foreign_free(foreign);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user