HomeFreeBSD

libzfs: run_process: don't leak fd on reopen failure

Description

libzfs: run_process: don't leak fd on reopen failure

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12082

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on May 19 2021, 12:32 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 21 2021, 4:49 PM
Parents
rG7c20ceebdd9c: libzfs: run_process: reuse line, don't leak it
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG5da6353987cc: libzfs: run_process: don't leak fd on reopen failure (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).May 21 2021, 4:49 PM