diff options
author | Gonglei <arei.gonglei@huawei.com> | 2015-02-27 15:50:11 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-03-10 08:15:34 +0300 |
commit | 9d0b65e6e8f255dd86630a6873b3859fb6a5477f (patch) | |
tree | 131c4c16286ede1f72f843c26a3659b9ddf376ea /block | |
parent | 3e4c67c9ce1eafe374f3070499d25ddeffb9f3ca (diff) | |
download | qemu-9d0b65e6e8f255dd86630a6873b3859fb6a5477f.zip qemu-9d0b65e6e8f255dd86630a6873b3859fb6a5477f.tar.gz qemu-9d0b65e6e8f255dd86630a6873b3859fb6a5477f.tar.bz2 |
nbd: fix resource leak
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'block')
-rw-r--r-- | block/nbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/nbd.c b/block/nbd.c index 697c021..6634a69 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -274,6 +274,7 @@ static int nbd_open(BlockDriverState *bs, QDict *options, int flags, */ sock = nbd_establish_connection(bs, errp); if (sock < 0) { + g_free(export); return sock; } |