Browse Source

fix use-after-free

10.2-MDEV-21910
Eugene Kosov 6 years ago
parent
commit
2b8b85bd0a
  1. 4
      extra/mariabackup/xtrabackup.cc

4
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

Loading…
Cancel
Save