fix use-after-free

This commit is contained in:
Eugene Kosov 2020-03-10 15:14:53 +03:00
parent 69e4c74e07
commit 2b8b85bd0a

View file

@ -3132,13 +3132,13 @@ xb_load_single_table_tablespace(
}
}
ut_free(name);
delete 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);
}
ut_free(name);
}
/** Scan the database directories under the MySQL datadir, looking for