1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

cov: Fix a leak

This commit is contained in:
Marian Csontos 2019-08-27 12:21:41 +02:00
parent e4f72e6655
commit 36523a398d

View File

@ -516,6 +516,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;
} }
} }
@ -547,8 +548,8 @@ static bool _sync_issue(struct io_engine *ioe, enum dir d, int fd,
log_debug("Device write error %d offset %llu len %llu", errno, log_debug("Device write error %d offset %llu len %llu", errno,
(unsigned long long)(where + pos), (unsigned long long)(where + pos),
(unsigned long long)(len - pos)); (unsigned long long)(len - pos));
free(io); free(io);
return false; return false;
} }
pos += rv; pos += rv;
} }