summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-11-12 08:31:56 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-11-12 08:31:56 +0200
commit16f86e69b5ddbb354e49075734bac8d732569e9e (patch)
treea246a1dfd7dd994c2156b45a217f8ab2bd228b7c
parent5407117a59a87a1e0042581bc9c258cd2e743c85 (diff)
downloadmariadb-git-16f86e69b5ddbb354e49075734bac8d732569e9e.tar.gz
MDEV-22343 fixup: Fix a memory leak
-rw-r--r--storage/innobase/dict/dict0load.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/dict/dict0load.cc b/storage/innobase/dict/dict0load.cc
index 8555c7849d6..f80a9bd93aa 100644
--- a/storage/innobase/dict/dict0load.cc
+++ b/storage/innobase/dict/dict0load.cc
@@ -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);