projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b35bf
)
block/nbd: nbd_client_handshake(): fix leak of s->ioc
author
Vladimir Sementsov-Ogievskiy
<vsementsov@virtuozzo.com>
Thu, 10 Jun 2021 10:07:38 +0000
(13:07 +0300)
committer
Eric Blake
<eblake@redhat.com>
Fri, 18 Jun 2021 15:59:53 +0000
(10:59 -0500)
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Roman Kagan <rvkagan@yandex-team.ru>
Message-Id: <
20210610100802
.5888-9-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd.c
patch
|
blob
|
history
diff --git
a/block/nbd.c
b/block/nbd.c
index 08ae47d83c073641f1a33db006590245e1a00881..77b85ca4718916da3accb489dc511eff93bdd4ce 100644
(file)
--- a/
block/nbd.c
+++ b/
block/nbd.c
@@
-1889,6
+1889,8
@@
static int nbd_client_handshake(BlockDriverState *bs, Error **errp)
nbd_yank, bs);
object_unref(OBJECT(s->sioc));
s->sioc = NULL;
+ object_unref(OBJECT(s->ioc));
+ s->ioc = NULL;
return ret;
}