diff options
author | Eugene Kosov <claprix@yandex.ru> | 2020-03-10 15:14:53 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2020-03-10 15:14:53 +0300 |
commit | 2b8b85bd0a916f68dbe0af2af71569c81605242f (patch) | |
tree | 6e1f6c1af3cffa0a0a683c6265aad3225686c36f /extra | |
parent | 69e4c74e079fc78812a75b1e2c050890161826bf (diff) | |
download | mariadb-git-2b8b85bd0a916f68dbe0af2af71569c81605242f.tar.gz |
fix use-after-free
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index d5e5fc49e75..828c2e06fc2 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -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 |