mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-27 06:35:23 -07:00
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>
This commit is contained in:
parent
2ab3cb8c0a
commit
d2d979c628
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue