On Tue, Dec 29, 2009 at 05:38:17PM +0200, Michael S. Tsirkin wrote:
> On Mon, Dec 28, 2009 at 04:49:00PM +0100, Aurelien Jarno wrote:
> > realloc(ptr, 0) is always allowed by the standard. The return value is
> > either NULL or a pointer that can be freed with free().
> >
> > Allow usage of qemu_r
On Mon, Dec 28, 2009 at 04:49:00PM +0100, Aurelien Jarno wrote:
> realloc(ptr, 0) is always allowed by the standard. The return value is
> either NULL or a pointer that can be freed with free().
>
> Allow usage of qemu_realloc(ptr, 0), and return NULL in that case, as
> free(NULL) should always be
On Mon, Dec 28, 2009 at 04:49:00PM +0100, Aurelien Jarno wrote:
> realloc(ptr, 0) is always allowed by the standard. The return value is
> either NULL or a pointer that can be freed with free().
>
> Allow usage of qemu_realloc(ptr, 0), and return NULL in that case, as
> free(NULL) should always be