mirror of https://gitee.com/openkylin/libvirt.git
qemu: Fix build without gnutls
"error" label in qemuMigrationCookieGraphicsAlloc is now used unconditionally thanks to VIR_STRDUP.
This commit is contained in:
parent
2697c8a116
commit
c6f2523fb1
|
@ -324,9 +324,7 @@ qemuMigrationCookieGraphicsAlloc(virQEMUDriverPtr driver,
|
||||||
|
|
||||||
no_memory:
|
no_memory:
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
#ifdef WITH_GNUTLS
|
|
||||||
error:
|
error:
|
||||||
#endif
|
|
||||||
qemuMigrationCookieGraphicsFree(mig);
|
qemuMigrationCookieGraphicsFree(mig);
|
||||||
virObjectUnref(cfg);
|
virObjectUnref(cfg);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue