You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
763 B
26 lines
763 B
4 years ago
|
From 165dfc7cf803e5e00d7239e2521582a9c9838178 Mon Sep 17 00:00:00 2001
|
||
|
From: Marian Csontos <mcsontos@redhat.com>
|
||
|
Date: Wed, 4 Mar 2020 13:22:10 +0100
|
||
|
Subject: [PATCH 3/4] bcache: Fix memory leak in error path
|
||
|
|
||
|
(cherry picked from commit deaf304ee6d88cd47632a345b92b3949cd06d752)
|
||
|
---
|
||
|
lib/device/bcache.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/lib/device/bcache.c b/lib/device/bcache.c
|
||
|
index 77d1543..a74b6b3 100644
|
||
|
--- a/lib/device/bcache.c
|
||
|
+++ b/lib/device/bcache.c
|
||
|
@@ -515,6 +515,7 @@ static bool _sync_issue(struct io_engine *ioe, enum dir d, int fd,
|
||
|
(unsigned long long)limit_nbytes,
|
||
|
(unsigned long long)extra_nbytes,
|
||
|
(unsigned long long)_last_byte_sector_size);
|
||
|
+ free(io);
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
--
|
||
|
1.8.3.1
|
||
|
|