Commit 6262bbd3 authored by Markus Armbruster's avatar Markus Armbruster Committed by Kevin Wolf
Browse files

block/vvfat: Plug memory leak in check_directory_consistency()

On error path.  Introduced in commit a046433a

.  Spotted by Coverity.

Signed-off-by: default avatarMarkus Armbruster <>
Reviewed-by: default avatarBenoit Canet <>
Signed-off-by: default avatarKevin Wolf <>
parent f25391c2
......@@ -1866,7 +1866,7 @@ static int check_directory_consistency(BDRVVVFATState *s,
if (s->used_clusters[cluster_num] & USED_ANY) {
fprintf(stderr, "cluster %d used more than once\n", (int)cluster_num);
return 0;
goto fail;
s->used_clusters[cluster_num] = USED_DIRECTORY;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment