mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
fix use-after-free
This commit is contained in:
parent
69e4c74e07
commit
2b8b85bd0a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue