target/i386/sev: sev_get_attestation_report use g_autofree
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 7 Oct 2021 16:17:04 +0000 (18:17 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Oct 2021 08:47:49 +0000 (10:47 +0200)
commited84ae720d0b28c50906412a903e598f75ee1d7c
tree14deff0e6cc8a1bfcdb0dd973dc9fa4accc7868f
parentd58d9f55a78a69730b4f1641f1c969d8585b970b
target/i386/sev: sev_get_attestation_report use g_autofree

Removes a whole bunch of g_free's and a goto.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Connor Kuehl <ckuehl@redhat.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Message-Id: <20210603113017.34922-1-dgilbert@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211007161716.453984-12-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c