qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [Qemu-trivial] [PATCH v4] util: Use g_malloc/g_free in


From: Saurav Sachidanand
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v4] util: Use g_malloc/g_free in envlist.c
Date: Mon, 20 Mar 2017 17:36:23 +0000

On Mon, Mar 20, 2017 at 5:32 PM, Saurav Sachidanand
<address@hidden> wrote:
> Change malloc/strdup/free to g_malloc/g_strdup/g_free in
> util/envlist.c.
>
> Remove NULL checks for pointers returned from g_malloc and g_strdup
> as they exit in case of failure. Also, update calls to envlist_create
> to reflect this.
>
> Free array and array contents returned by envlist_to_environ using
> g_free in bsd-user/main.c and linux-user/main.c.
>
> Update comments to reflect change in semantics.
> ---

Sorry, forgot to sign it.



reply via email to

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