Skip to content

Commit

Permalink
fix use-after-free
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs committed Mar 10, 2020
1 parent 69e4c74 commit 2b8b85b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/mariabackup/xtrabackup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b8b85b

Please sign in to comment.