From: Michael Tokarev <mjt@tls.msk.ru>
To: zhanghailiang <zhang.zhanghailiang@huawei.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, luonengjun@huawei.com,
peter.huangpeng@huawei.com, mst@redhat.com
Subject: Re: [Qemu-trivial] [PATCH v7] util/path: Use the GLib memory allocation routines
Date: Mon, 18 Aug 2014 15:25:32 +0400 [thread overview]
Message-ID: <53F1E2AC.7000303@msgid.tls.msk.ru> (raw)
In-Reply-To: <1408348162-10020-1-git-send-email-zhang.zhanghailiang@huawei.com>
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
WARNING: multiple messages have this Message-ID (diff)
From: Michael Tokarev <mjt@tls.msk.ru>
To: zhanghailiang <zhang.zhanghailiang@huawei.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, luonengjun@huawei.com,
peter.huangpeng@huawei.com, mst@redhat.com
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v7] util/path: Use the GLib memory allocation routines
Date: Mon, 18 Aug 2014 15:25:32 +0400 [thread overview]
Message-ID: <53F1E2AC.7000303@msgid.tls.msk.ru> (raw)
In-Reply-To: <1408348162-10020-1-git-send-email-zhang.zhanghailiang@huawei.com>
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
next prev parent reply other threads:[~2014-08-18 11:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-18 7:49 [Qemu-trivial] [PATCH v7] util/path: Use the GLib memory allocation routines zhanghailiang
2014-08-18 7:49 ` [Qemu-devel] " zhanghailiang
2014-08-18 11:25 ` Michael Tokarev [this message]
2014-08-18 11:25 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F1E2AC.7000303@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=luonengjun@huawei.com \
--cc=mst@redhat.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=zhang.zhanghailiang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.