From: Tomohiro Kusumi Date: Fri, 26 May 2017 19:25:09 +0000 (+0300) Subject: verify: add missing free(ptr); X-Git-Tag: fio-2.21~30 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5bb51e603a3c578ad791ba566e3c833304ac5035;ds=sidebyside verify: add missing free(ptr); Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/verify.c b/verify.c index cadfe9c3..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; }