X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=verify.c;h=1c39fa2e877f14511f575bf847f14c55acdba634;hp=f567ec1e67d6946158b95c7b6b0bc910d5f134c5;hb=b29c71c4a1e96390051d012b4e35c8d0718f7ce3;hpb=ae3a5accfdbe1fbfde6ba4ab583887a7d3d779ac diff --git a/verify.c b/verify.c index f567ec1e..1c39fa2e 100644 --- a/verify.c +++ b/verify.c @@ -271,6 +271,7 @@ static void dump_buf(char *buf, unsigned int len, unsigned long long offset, fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY, 0644); if (fd < 0) { perror("open verify buf file"); + free(ptr); return; } @@ -851,7 +852,7 @@ static int verify_header(struct io_u *io_u, struct thread_data *td, * state of numberio, that would have been written to each block * in a previous run of fio, has been reached. */ - if ((td_write(td) || td_rw(td)) && (td_min_bs(td) == td_max_bs(td)) && + if (td_write(td) && (td_min_bs(td) == td_max_bs(td)) && !td->o.time_based) if (!td->o.verify_only || td->o.loops == 0) if (hdr->numberio != io_u->numberio) {