[libvirt] [PATCH 2/2] qemu: clean up OOM checks

Eric Blake eblake at redhat.com
Fri Jul 8 15:47:06 UTC 2011


On 07/08/2011 09:13 AM, Michael Santos wrote:
> ---
>  src/qemu/qemu_command.c |   40 ++++++++++++++++++++--------------------
>  1 files changed, 20 insertions(+), 20 deletions(-)
> 
> diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
> index 6e4480e..19151ce 100644
> --- a/src/qemu/qemu_command.c
> +++ b/src/qemu/qemu_command.c
> @@ -5712,6 +5712,9 @@ qemuParseCommandLineCPU(virDomainDefPtr dom,
>              else
>                  feature = strdup(p);
>  
> +            if (!feature)
> +                goto no_memory;
> +

ACK and pushed.  I added your name to AUTHORS, let me know if I need to
adjust any spelling.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110708/f65781ff/attachment-0001.sig>


More information about the libvir-list mailing list