verify: add missing free(ptr);
authorTomohiro Kusumi <tkusumi@tuxera.com>
Fri, 26 May 2017 19:25:09 +0000 (22:25 +0300)
committerJens Axboe <axboe@fb.com>
Fri, 26 May 2017 19:28:57 +0000 (13:28 -0600)
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
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;
        }