]> git.proxmox.com Git - mirror_zfs.git/commit
Fix memory leaks in dmu_send()/dmu_send_obj()
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Tue, 18 Oct 2022 23:03:33 +0000 (19:03 -0400)
committerGitHub <noreply@github.com>
Tue, 18 Oct 2022 23:03:33 +0000 (16:03 -0700)
commiteaaed26ffb3a14c0c98ce1e6e039e62327ab4447
tree5caff89835fbee05caa9d2e474e795f01d130019
parent84243acb91b754de167c6bfc9a7db68e46b91870
Fix memory leaks in dmu_send()/dmu_send_obj()

If we encounter an EXDEV error when using the redacted snapshots
feature, the memory used by dspp.fromredactsnaps is leaked.

Clang's static analyzer caught this during an experiment in which I had
annotated various headers in an attempt to improve the results of static
analysis.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13973
module/zfs/dmu_send.c