]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/nbd: Fix the leaked visitor
authorAshijeet Acharya <ashijeetacharya@gmail.com>
Wed, 2 Nov 2016 10:40:03 +0000 (16:10 +0530)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Nov 2016 14:54:55 +0000 (15:54 +0100)
commita1d4e38a8b01a6699355c31867d524f8d4cd480e
tree601fd60c1d13fabfd85d18a71d7ea5e3edbfe624
parent6bbcb76301a72dc80c8d29af13d40bb9a759c9c6
block/nbd: Fix the leaked visitor

This patch frees the leaked visitor in nbd_refresh_filename() and uses
visit_free() to fix it. The leak was introduced by the commit 491d6c7.

Signed-off-by: Ashijeet Acharya <ashijeetacharya@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nbd.c