Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qcow2: Put cache reference in error case
When qcow2_get_cluster_offset() sees a zero cluster in a version 2 image, it (rightfully) returns an error. But in doing so it shouldn't leak an L2 table cache reference. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
- Loading branch information