verify: add missing free(ptr);
[fio.git] / verify.c
index cadfe9c32825d99f818ff879cbe67273c41cd15d..1c39fa2e877f14511f575bf847f14c55acdba634 100644 (file)
--- 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;
        }