1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

bcache: fix memory leak on error path

Coverity noticed missing free of io struct on error path.
This commit is contained in:
Zdenek Kabelac 2018-12-21 21:01:18 +01:00
parent a13fa75d8e
commit 82f66834ef
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.03.02 -
===================================
Fix memleak on bcache error path code.
Fix missing unlock on lvm2 dmeventd plugin error path initialization.
Improve Makefile dependency tracking.
Move VDO support towards V2 target (6.2) support.

View File

@ -409,6 +409,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;
}