HomeFreeBSD

Fix memory leaks in dmu_send()/dmu_send_obj()

Description

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

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 18 2022, 11:03 PM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 1 2022, 8:39 PM
Parents
rGaf2e53f62c0a: Fix possible NULL pointer dereference in sha2_mac_init()
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3830858c5cb4: Fix memory leaks in dmu_send()/dmu_send_obj() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 1 2022, 8:39 PM