Merge "libsparse: fix memory leak in output_file_close()" am: 46f9698a11
am: c324e80972
Change-Id: I65119178b6da128e36968b0a095f3b8a80e96059
This commit is contained in:
commit
ca631082ac
1 changed files with 4 additions and 0 deletions
|
|
@ -493,6 +493,10 @@ static struct sparse_file_ops normal_file_ops = {
|
|||
|
||||
void output_file_close(struct output_file* out) {
|
||||
out->sparse_ops->write_end_chunk(out);
|
||||
free(out->zero_buf);
|
||||
free(out->fill_buf);
|
||||
out->zero_buf = nullptr;
|
||||
out->fill_buf = nullptr;
|
||||
out->ops->close(out);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue