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
This commit is contained in:
sterlingjensen
2020-11-10 17:50:44 -06:00
committed by GitHub
parent b60ae3a5dc
commit a4ae4998cb
6 changed files with 176 additions and 42 deletions
+1
View File
@@ -184,6 +184,7 @@ export ZFS_FILES='zdb
arc_summary
arcstat
dbufstat
mount.zfs
zed
zgenhostid
zstream