HomeFreeBSD

Fix memleak in cmd/mount_zfs.c

Description

Fix memleak in cmd/mount_zfs.c

Convert dynamic allocation to static buffer, simplify parse_dataset
function return path. Add tests specific to the mount helper.

Reviewed-by: Mateusz Guzik <mjguzik@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Sterling Jensen <sterlingjensen@users.noreply.github.com>
Closes #11098

Details

Provenance
sterlingjensen <5555776+sterlingjensen@users.noreply.github.com>Authored on Nov 10 2020, 11:50 PM
GitHub <noreply@github.com>Committed on Nov 10 2020, 11:50 PM
Parents
rGb60ae3a5dc42: zpoolprops.8: clarify vdev expansion rules
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGa4ae4998cbae: Fix memleak in cmd/mount_zfs.c (authored by sterlingjensen <5555776+sterlingjensen@users.noreply.github.com>).Nov 10 2020, 11:50 PM