mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01: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:
parent
cb583b2f1b
commit
c579d66ba6
1 changed files with 2 additions and 0 deletions
|
@ -1804,6 +1804,8 @@ dict_table_rename_in_cache(
|
|||
foreign->referenced_table
|
||||
->referenced_set.insert(foreign);
|
||||
}
|
||||
} else {
|
||||
dict_foreign_free(foreign);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue