commit | d2d979c628e4b2c4a3cb71a31841875795c79043 | [log] [tgz] |
---|---|---|
author | Nick Thomas <nick@bytemark.co.uk> | Thu Apr 28 16:20:01 2011 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue May 03 11:29:21 2011 +0200 |
tree | a8bf51abb05b9471392db02846e875493be8c750 | |
parent | 2ab3cb8c0ae79c96f38f6bfd35620cc18ddba19f [diff] |
NBD: Avoid leaking a couple of strings when the NBD device is closed Signed-off-by: Nick Thomas <nick@bytemark.co.uk> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
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 void nbd_close(BlockDriverState *bs) { + BDRVNBDState *s = bs->opaque; + qemu_free(s->export_name); + qemu_free(s->host_spec); + nbd_teardown_connection(bs); }