mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_02_185-bcache-Fix-memory-leak.patch

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