Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c324e809 authored by Robin Hsu's avatar Robin Hsu Committed by android-build-merger
Browse files

Merge "libsparse: fix memory leak in output_file_close()"

am: 46f9698a

Change-Id: I2ad649a3198cd09179956e2ca4d921f1a2be02d8
parents 4a645c74 46f9698a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
}