Commit d2d979c6 authored by Nick Thomas's avatar Nick Thomas Committed by Kevin Wolf
Browse files

NBD: Avoid leaking a couple of strings when the NBD device is closed


Signed-off-by: default avatarNick Thomas <nick@bytemark.co.uk>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 2ab3cb8c
...@@ -239,6 +239,10 @@ static int nbd_write(BlockDriverState *bs, int64_t sector_num, ...@@ -239,6 +239,10 @@ static int nbd_write(BlockDriverState *bs, int64_t sector_num,
static void nbd_close(BlockDriverState *bs) static void nbd_close(BlockDriverState *bs)
{ {
BDRVNBDState *s = bs->opaque;
qemu_free(s->export_name);
qemu_free(s->host_spec);
nbd_teardown_connection(bs); nbd_teardown_connection(bs);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment