qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: nick@bytemark.co.uk
To: kwolf@redhat.com
Cc: stefanha@gmail.com, qemu-devel@nongnu.org,
	Nick Thomas <nick@bytemark.co.uk>
Subject: [Qemu-devel] [PATCH 1/2] NBD: Avoid leaking a couple of strings when the NBD device is closed
Date: Thu, 28 Apr 2011 16:20:01 +0100	[thread overview]
Message-ID: <1304004002-2018-1-git-send-email-nick@bytemark.co.uk> (raw)
In-Reply-To: <1304003767.15402.28.camel@desk4.office.bytemark.co.uk>

From: Nick Thomas <nick@bytemark.co.uk>

Signed-off-by: Nick Thomas <nick@bytemark.co.uk>
---
 block/nbd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/block/nbd.c b/block/nbd.c
index 1d6b225..7a52f62 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -239,6 +239,10 @@ static int nbd_write(BlockDriverState *bs, int64_t sector_num,
 
 static void nbd_close(BlockDriverState *bs)
 {
+    BDRVNBDState *s = bs->opaque;
+    qemu_free(s->export_name);
+    qemu_free(s->host_spec);
+
     nbd_teardown_connection(bs);
 }
 
-- 
1.7.0.4

  reply	other threads:[~2011-04-28 15:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1298389495-20618-5-git-send-email-nick@bytemark.co.uk>
     [not found] ` <1298566151-27218-1-git-send-email-nick@bytemark.co.uk>
2011-04-06 11:30   ` [Qemu-devel] Re: [PATCH] NBD: Convert the NBD driver to use the AIO interface Kevin Wolf
2011-04-28 15:16     ` [Qemu-devel] " Nicholas Thomas
2011-04-28 15:20       ` nick [this message]
2011-05-03 11:01         ` [Qemu-devel] [PATCH 1/2] NBD: Avoid leaking a couple of strings when the NBD device is closed Stefan Hajnoczi
2011-04-28 15:20       ` [Qemu-devel] [PATCH 2/2] NBD: Convert the NBD driver to use the AIO interface nick
2011-05-03 13:20         ` Nicholas Thomas

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=1304004002-2018-1-git-send-email-nick@bytemark.co.uk \
    --to=nick@bytemark.co.uk \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --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).