[Top][All Lists]

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

Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently

From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently
Date: Fri, 29 May 2009 12:10:23 +0200
User-agent: Thunderbird (X11/20090320)

address@hidden schrieb:
> Kevin,
> I certainly understand your goal ... 
> Anyway, I will update my patche and resubmit.
> BTW it has to be noted that most of the time the return value of 
> malloc/qemu_malloc is not checked which can also prove problematic whatever 
> the qemu_malloc/malloc behavior is.

It doesn't need to be checked, qemu_malloc never returns if it fails. If
malloc(0) returns NULL (on success!) checking it is even wrong in places
where this can happen.


reply via email to

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