From fa57d76de233e22afd79e81c98a741c23dae3498 Mon Sep 17 00:00:00 2001
From: Milan Broz <gmazyland@gmail.com>
Date: Sat, 29 Aug 2020 12:21:32 +0200
Subject: [PATCH 5/5] Fix a memleak in blockwise test.

---
 tests/unit-utils-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unit-utils-io.c b/tests/unit-utils-io.c
index ff5be52..9e59234 100644
--- a/tests/unit-utils-io.c
+++ b/tests/unit-utils-io.c
@@ -99,7 +99,7 @@ static int test_write_buffer(void)
 	if (ret < 0)
 		goto out;
 
-	return (size_t) ret == test_length ? 0 : -EIO;
+	ret = (size_t) ret == test_length ? 0 : -EIO;
 out:
 	if (fd >= 0)
 		close(fd);
-- 
1.8.3.1

