Commit 2b8b85bd authored by Eugene Kosov's avatar Eugene Kosov

fix use-after-free

parent 69e4c74e
...@@ -3132,13 +3132,13 @@ xb_load_single_table_tablespace( ...@@ -3132,13 +3132,13 @@ xb_load_single_table_tablespace(
} }
} }
ut_free(name);
delete file; delete file;
if (err != DB_SUCCESS && xtrabackup_backup && !is_empty_file) { if (err != DB_SUCCESS && xtrabackup_backup && !is_empty_file) {
die("Failed to not validate first page of the file %s, error %d",name, (int)err); die("Failed to not validate first page of the file %s, error %d",name, (int)err);
} }
ut_free(name);
} }
/** Scan the database directories under the MySQL datadir, looking for /** Scan the database directories under the MySQL datadir, looking for
......
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