From: Gerd Hoffmann <kraxel@redhat.com>
To: vibi_sreenivasan@cms.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH]:Use qemu_malloc & qemu_free instead of malloc & free
Date: Tue, 05 May 2009 14:50:26 +0200 [thread overview]
Message-ID: <4A003612.4010405@redhat.com> (raw)
In-Reply-To: <1241519517.2162.6.camel@system>
Hi,
> - path = malloc(len+1);
> + path = qemu_malloc(len+1);
> snprintf(path, len+1, "%.*s", len, str);
> } else
> path = strdup(str);
You need s/strdup/qemu_strdup/ here (and maybe elsewhere too), otherwise
you'll mix strdup + qemu_free().
cheers,
Gerd
next prev parent reply other threads:[~2009-05-05 12:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 10:31 [Qemu-devel] [PATCH]:Use qemu_malloc & qemu_free instead of malloc & free vibisreenivasan
2009-05-05 12:50 ` Gerd Hoffmann [this message]
2009-05-06 7:21 ` vibisreenivasan
-- strict thread matches above, loose matches on Subject: below --
2009-05-05 10:09 [Qemu-devel] [PATCH] Use " vibisreenivasan
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=4A003612.4010405@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vibi_sreenivasan@cms.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).