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

bcache: fix memleak on error path

clang: free io on error path.
This commit is contained in:
Zdenek Kabelac 2020-01-29 17:31:17 +01:00
parent 1bde35e596
commit c5e5ae4c95

View File

@ -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;
}
}