[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] block/nbd: Fix the regression to free leaked visito
From: |
Ashijeet Acharya |
Subject: |
[Qemu-devel] [PATCH] block/nbd: Fix the regression to free leaked visitor |
Date: |
Mon, 31 Oct 2016 23:21:33 +0530 |
This patch frees the leaked visitor in nbd_refresh_filename() and uses
visit_free() to fix it.
Signed-off-by: Ashijeet Acharya <address@hidden>
---
block/nbd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/nbd.c b/block/nbd.c
index 8ef1438..ff9d01a 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -545,6 +545,7 @@ static void nbd_refresh_filename(BlockDriverState *bs,
QDict *options)
qdict_put(opts, "tls-creds", qstring_from_str(s->tlscredsid));
}
+ visit_free(ov);
qdict_flatten(opts);
bs->full_open_options = opts;
}
--
2.6.2
- [Qemu-devel] [PATCH] block/nbd: Fix the regression to free leaked visitor,
Ashijeet Acharya <=