Skip to contentSkip to conversation

stable-2.02 - bcache: Fix memory leak

PATCH Marian Csontos 1 participant 1 message Apr 4, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b79f1e176f013167ca9798efb55eaf048d64e042
Commit:        b79f1e176f013167ca9798efb55eaf048d64e042
Parent:        81d954df4ed844600c44b99ee68453e1e53fcf31
Author:        Marian Csontos <[email protected]>
AuthorDate:    Thu Apr 4 10:18:07 2019 +0200
Committer:     Marian Csontos <[email protected]>
CommitterDate: Thu Apr 4 10:19:15 2019 +0200

bcache: Fix memory leak

---
 lib/device/bcache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
lib/device/bcache.c +1 -0
index 7384a32..f64931f 100644
@@ -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;
 		}