On Thu 17 Sep 2015 03:48:09 PM CEST, Kevin Wolf wrote:

> @@ -1929,6 +1925,11 @@ void bdrv_close(BlockDriverState *bs)
>              bdrv_unref(backing_hd);
>          }
>  
> +        if (bs->file != NULL) {
> +            bdrv_unref(bs->file->bs);
> +            bs->file = NULL;
> +        }
> +

With Max's suggestion of using bdrv_unref_child(bs->file) instead,

Reviewed-by: Alberto Garcia <be...@igalia.com>

Berto

Reply via email to