Message ID | 1394719868-24312-19-git-send-email-stefanha@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block.c b/block.c index cf5645a..fae50c9 100644 --- a/block.c +++ b/block.c @@ -1321,7 +1321,7 @@ int bdrv_open(BlockDriverState **pbs, const char *filename, bdrv_open_flags(bs, flags | BDRV_O_UNMAP) | BDRV_O_PROTOCOL, true, &local_err); if (ret < 0) { - goto fail; + goto unlink_and_fail; } /* Find the right image format driver */