From: Peter Krempa <pkrempa@redhat.com>
To: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Cc: kwolf@redhat.com, stefanha@gmail.com, qemu-devel@nongnu.org,
deepakcs@redhat.com, bharata@linux.vnet.ibm.com,
rtalur@redhat.com
Subject: Re: [Qemu-devel] [PATCH v9 3/3] block/gluster: add support for multiple gluster servers
Date: Thu, 22 Oct 2015 09:03:07 +0200 [thread overview]
Message-ID: <20151022070307.GA5667@andariel.pipo.sk> (raw)
In-Reply-To: <1445434451-3439-3-git-send-email-prasanna.kalever@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 959 bytes --]
On Wed, Oct 21, 2015 at 19:04:11 +0530, Prasanna Kumar Kalever wrote:
...
> ---
> block/gluster.c | 420 +++++++++++++++++++++++++++++++++++++++++++++------
> qapi/block-core.json | 62 +++++++-
> 2 files changed, 433 insertions(+), 49 deletions(-)
>
> diff --git a/block/gluster.c b/block/gluster.c
> index ededda2..62b6656 100644
> --- a/block/gluster.c
> +++ b/block/gluster.c
...
> +
>
> static void qemu_gluster_gconf_free(GlusterConf *gconf)
> {
> if (gconf) {
> - g_free(gconf->host);
> g_free(gconf->volume);
> g_free(gconf->path);
> - g_free(gconf->transport);
> + if (gconf->gsconf) {
> + g_free(gconf->gsconf[0].host);
> + g_free(gconf->gsconf[0].transport);
> + g_free(gconf->gsconf);
Looks like this leaks second and any further server config struct.
> + }
> g_free(gconf);
> }
> }
Peter
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-10-22 7:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-21 13:34 [Qemu-devel] [PATCH v2 1/3] block/gluster: rename [server, volname, image] -> [host, volume, path] Prasanna Kumar Kalever
2015-10-21 13:34 ` [Qemu-devel] [PATCH v2 2/3] block/gluster: code cleanup Prasanna Kumar Kalever
2015-10-21 14:00 ` Eric Blake
2015-10-21 13:34 ` [Qemu-devel] [PATCH v9 3/3] block/gluster: add support for multiple gluster servers Prasanna Kumar Kalever
2015-10-22 7:03 ` Peter Krempa [this message]
2015-10-21 13:58 ` [Qemu-devel] [PATCH v2 1/3] block/gluster: rename [server, volname, image] -> [host, volume, path] Eric Blake
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=20151022070307.GA5667@andariel.pipo.sk \
--to=pkrempa@redhat.com \
--cc=bharata@linux.vnet.ibm.com \
--cc=deepakcs@redhat.com \
--cc=kwolf@redhat.com \
--cc=prasanna.kalever@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rtalur@redhat.com \
--cc=stefanha@gmail.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).