HomeFreeBSD

Illumos#16463 zfs_ioc_recv leaks nvlist

Description

Illumos#16463 zfs_ioc_recv leaks nvlist

In https://www.illumos.org/issues/16463 it was observed that
an nvlist was being leaked in zfs_ioc_recv() due a missing
call to nvlist_free for "hidden_args".
For OpenZFS the same issue exists in zfs_ioc_recv_new() and
is addressed by this PR.

This change also properly frees nvlists in the unlikely
event that a call to get_nvlist() fails.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Andy Fiddaman <illumos@fiddaman.net>
Closes #16077

Details

Provenance
andy_omniosce.orgAuthored on Apr 11 2024, 9:38 PM
GitHub <noreply@github.com>Committed on Apr 11 2024, 9:38 PM
Parents
rGe5ddecd1a7e3: return NULL at end of send_progress_thread
Branches
Unknown
Tags
Unknown