File bug-1164718_13-bcache-Fix-memory-leak.patch of Package lvm2-clvm.18094

From b79f1e176f013167ca9798efb55eaf048d64e042 Mon Sep 17 00:00:00 2001
From: Marian Csontos <mcsontos@redhat.com>
Date: Thu, 4 Apr 2019 10:18:07 +0200
Subject: [PATCH] bcache: Fix memory leak

---
 lib/device/bcache.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/device/bcache.c b/lib/device/bcache.c
index 7384a3290..f64931fd7 100644
--- a/lib/device/bcache.c
+++ b/lib/device/bcache.c
@@ -411,6 +411,7 @@ static bool _sync_issue(struct io_engine *ioe, enum dir d, int fd,
 				  (unsigned long long)offset,
 				  (unsigned long long)nbytes,
 				  (unsigned long long)_last_byte_offset);
+			free(io);
 			return false;
 		}
 
-- 
2.24.0

openSUSE Build Service is sponsored by