MDEV-22343 fixup: Fix a memory leak

This commit is contained in:
Marko Mäkelä 2020-11-12 08:31:56 +02:00
parent 5407117a59
commit 16f86e69b5

View File

@ -1054,7 +1054,7 @@ next:
look to see if it is already in the tablespace cache. */
if (fil_space_for_table_exists_in_mem(
space_id, table_name.m_name, flags)) {
continue;
goto next;
}
char* filepath = fil_make_filepath(
@ -1073,8 +1073,8 @@ next:
max_space_id = ut_max(max_space_id, space_id);
ut_free(table_name.m_name);
ut_free(filepath);
goto next;
}
mtr_commit(&mtr);