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:
parent
e4f72e6655
commit
36523a398d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user