Skip to content

Commit

Permalink
fix leak
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens committed Nov 11, 2020
1 parent 519af40 commit 659a7a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zfs/dmu_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1929,6 +1929,8 @@ flush_write_batch_impl(struct receive_writer_arg *rwa)
drrw->drr_logical_size,
abd_to_buf(abd), tx);
}
if (err == 0)
abd_free(abd);
} else {
zio_prop_t zp;
dmu_write_policy(rwa->os, dn, 0, 0, &zp);
Expand Down

0 comments on commit 659a7a9

Please sign in to comment.