|
@@ -162,8 +162,7 @@ static int configure_tpm(QemuOpts *opts)
|
|
/* validate backend specific opts */
|
|
/* validate backend specific opts */
|
|
qemu_opts_validate(opts, be->opts, &local_err);
|
|
qemu_opts_validate(opts, be->opts, &local_err);
|
|
if (local_err) {
|
|
if (local_err) {
|
|
- qerror_report_err(local_err);
|
|
|
|
- error_free(local_err);
|
|
|
|
|
|
+ error_report_err(local_err);
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -174,8 +173,7 @@ static int configure_tpm(QemuOpts *opts)
|
|
|
|
|
|
tpm_backend_open(drv, &local_err);
|
|
tpm_backend_open(drv, &local_err);
|
|
if (local_err) {
|
|
if (local_err) {
|
|
- qerror_report_err(local_err);
|
|
|
|
- error_free(local_err);
|
|
|
|
|
|
+ error_report_err(local_err);
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|