HomeFreeBSD

bhyveload: make error printing consistent

Description

bhyveload: make error printing consistent

Previously we used a mix of perror(3) + exit(3) and err(3); standardize
on the latter instead. This does remove one free() in an error path,
because we're decidedly leaking a lot more than just the loader name
there (loader handle, vcpu, vmctx...) anyways.

Reviewed by: markj

(cherry picked from commit a4a838a31ac24e19c8ee68d45cf5234615d0b958)

Details

Provenance
kevansAuthored on Jan 8 2024, 5:49 PM
Parents
rG482ab31c64cd: bhyveload: support guest rebooting from the loader
Branches
Unknown
Tags
Unknown