qemu-trivial
[Top][All Lists]
Advanced

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

Re: [Qemu-trivial] [PATCH v7] util/path: Use the GLib memory allocation


From: Michael Tokarev
Subject: Re: [Qemu-trivial] [PATCH v7] util/path: Use the GLib memory allocation routines
Date: Mon, 18 Aug 2014 15:25:32 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.7.0

18.08.2014 11:49, zhanghailiang wrote:
> In this file, we don't check the return value of malloc/strdup/realloc which 
> may fail.
> Instead of using these routines, we use the GLib memory APIs 
> g_malloc/g_strdup/g_realloc.
> They will exit on allocation failure, so there is no need to test for failure,
> which would be fine for setup.

Applied to -trivial, thank you!

/mjt



reply via email to

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