HomeFreeBSD

Fix memory leak found by GCC static analyzer

Description

Fix memory leak found by GCC static analyzer

GCC 12.1.1_p20220625's -fanalyzer found and reported this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13975

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Oct 3 2022, 8:41 PM
GitHub <noreply@github.com>Committed on Oct 3 2022, 8:41 PM
Parents
rG67395be0c2bd: Fix userland dereference NULL return value bugs
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGd62bafee9fc3: Fix memory leak found by GCC static analyzer (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Oct 3 2022, 8:41 PM