freebsd-dev/usr.sbin/bsdinstall/partedit
John Baldwin 2309909919 bsdinstall: Handle errors from geom_gettree.
geom_gettree probably never fails, and if it does there isn't much of
a fallback other than aborting partitioning.  However, a few places
were checking the return value and not doing anything with it
triggering a unused-but-set-variable warning.  Checking the errors
resolves the warning.

While here, check for errors in other places that weren't checking for
them at all, remove a spurious double call (the second call overwrote
the mesh structure leaking all the pointers from the first), and close
a few resource leaks on error paths.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D40779
2023-06-28 11:11:00 -07:00
..
diskmenu.c bsdinstall/partedit: Replace libdialog with libbsddialog 2022-04-04 02:05:00 +02:00
diskmenu.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
gpart_ops.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
Makefile bsdinstall avoid subdir depending on parent 2023-04-20 22:00:40 -07:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
part_wizard.c bsdinstall: Handle errors from geom_gettree. 2023-06-28 11:11:00 -07:00
partedit_efi.c Mount the EFI system partition (ESP) on newly-installed systems. 2021-02-23 16:24:21 -05:00
partedit_generic.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
partedit_powerpc.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
partedit_x86.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
partedit.c bsdinstall: Handle errors from geom_gettree. 2023-06-28 11:11:00 -07:00
partedit.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
sade.8
scripted.c bsdinstall: Handle errors from geom_gettree. 2023-06-28 11:11:00 -07:00