From: Guido Günther Date: Fri, 20 Jan 2012 16:27:08 +0000 (+0100) Subject: xen: properly report out of memory when hvm_type is too small X-Git-Tag: v0.9.10-rc1~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c76a17b428bc271fe558e91060c11707b0f60063;p=thirdparty%2Flibvirt.git xen: properly report out of memory when hvm_type is too small --- diff --git a/src/xen/xen_hypervisor.c b/src/xen/xen_hypervisor.c index 2bb3466299..5e7196712f 100644 --- a/src/xen/xen_hypervisor.c +++ b/src/xen/xen_hypervisor.c @@ -2598,7 +2598,7 @@ xenHypervisorMakeCapabilitiesInternal(virConnectPtr conn, &line[subs[1].rm_so], subs[1].rm_eo-subs[1].rm_so, sizeof(hvm_type)) == NULL) - return NULL; + goto no_memory; } else if (regexec (&flags_pae_rec, line, 0, NULL, 0) == 0) host_pae = 1; }