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:
parent
1bde35e596
commit
c5e5ae4c95
@ -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)limit_nbytes,
|
||||||
(unsigned long long)extra_nbytes,
|
(unsigned long long)extra_nbytes,
|
||||||
(unsigned long long)_last_byte_sector_size);
|
(unsigned long long)_last_byte_sector_size);
|
||||||
|
free(io);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user