From 5bb51e603a3c578ad791ba566e3c833304ac5035 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Fri, 26 May 2017 22:25:09 +0300 Subject: [PATCH] verify: add missing free(ptr); Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- verify.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.25.1