mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
cpu_x86: Use g_auto* in virX86CpuIncompatible
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ffa6dc0519
commit
af7ffa4834
@ -1797,7 +1797,7 @@ virCPUx86DataParse(xmlXPathContextPtr ctxt)
|
|||||||
*/
|
*/
|
||||||
#define virX86CpuIncompatible(MSG, CPU_DEF) \
|
#define virX86CpuIncompatible(MSG, CPU_DEF) \
|
||||||
do { \
|
do { \
|
||||||
char *flagsStr = NULL; \
|
g_autofree char *flagsStr = NULL; \
|
||||||
if (!(flagsStr = x86FeatureNames(map, ", ", (CPU_DEF)))) { \
|
if (!(flagsStr = x86FeatureNames(map, ", ", (CPU_DEF)))) { \
|
||||||
virReportOOMError(); \
|
virReportOOMError(); \
|
||||||
return VIR_CPU_COMPARE_ERROR; \
|
return VIR_CPU_COMPARE_ERROR; \
|
||||||
@ -1805,7 +1805,6 @@ virCPUx86DataParse(xmlXPathContextPtr ctxt)
|
|||||||
if (message) \
|
if (message) \
|
||||||
*message = g_strdup_printf("%s: %s", _(MSG), flagsStr); \
|
*message = g_strdup_printf("%s: %s", _(MSG), flagsStr); \
|
||||||
VIR_DEBUG("%s: %s", MSG, flagsStr); \
|
VIR_DEBUG("%s: %s", MSG, flagsStr); \
|
||||||
VIR_FREE(flagsStr); \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user