MDEV-22343 fixup: Fix a memory leak
This commit is contained in:
parent
5407117a59
commit
16f86e69b5
@ -1054,7 +1054,7 @@ next:
|
|||||||
look to see if it is already in the tablespace cache. */
|
look to see if it is already in the tablespace cache. */
|
||||||
if (fil_space_for_table_exists_in_mem(
|
if (fil_space_for_table_exists_in_mem(
|
||||||
space_id, table_name.m_name, flags)) {
|
space_id, table_name.m_name, flags)) {
|
||||||
continue;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* filepath = fil_make_filepath(
|
char* filepath = fil_make_filepath(
|
||||||
@ -1073,8 +1073,8 @@ next:
|
|||||||
|
|
||||||
max_space_id = ut_max(max_space_id, space_id);
|
max_space_id = ut_max(max_space_id, space_id);
|
||||||
|
|
||||||
ut_free(table_name.m_name);
|
|
||||||
ut_free(filepath);
|
ut_free(filepath);
|
||||||
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
mtr_commit(&mtr);
|
mtr_commit(&mtr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user