[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/6] NBD: Avoid leaking a couple of strings when the
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 6/6] NBD: Avoid leaking a couple of strings when the NBD device is closed |
Date: |
Tue, 3 May 2011 13:08:26 +0200 |
From: Nick Thomas <address@hidden>
Signed-off-by: Nick Thomas <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
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.2.3
- [Qemu-devel] [PULL 0/6] Block patches, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 1/6] qemu-img resize: Fix option parsing, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 2/6] atapi: Move comment to proper place, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 3/6] atapi: Explain why we need a 'media not present' state, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 5/6] qemu-progress.c: printf isn't signal safe, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 4/6] ide/atapi: fix set but unused, Kevin Wolf, 2011/05/03
- [Qemu-devel] [PATCH 6/6] NBD: Avoid leaking a couple of strings when the NBD device is closed,
Kevin Wolf <=
- Re: [Qemu-devel] [PULL 0/6] Block patches, Anthony Liguori, 2011/05/03