qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/1] loader: g_realloc(p, 0) frees and returns N


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 1/1] loader: g_realloc(p, 0) frees and returns NULL, simplify
Date: Wed, 20 Aug 2014 12:49:39 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0

On 08/20/2014 12:38 PM, Markus Armbruster wrote:
> Once upon a time, it was decided that qemu_realloc(ptr, 0) should
> abort.  Switching to glib retired that bright idea.  A bit of code
> that was added to cope with it (commit 3e372cf) is still around.  Bury
> it.
> 
> See also commit 6528499.
> 
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
>  include/hw/elf_ops.h | 15 +++++----------
>  1 file changed, 5 insertions(+), 10 deletions(-)

Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]