Commit c579d66b authored by Aleksey Midenkov's avatar Aleksey Midenkov

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.
parent cb583b2f
......@@ -1804,6 +1804,8 @@ dict_table_rename_in_cache(
foreign->referenced_table
->referenced_set.insert(foreign);
}
} else {
dict_foreign_free(foreign);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment