|
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 2.0.0.21 (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. Kevin
[Prev in Thread] | Current Thread | [Next in Thread] |