]> git.proxmox.com Git - qemu.git/blobdiff - block/vvfat.c
target-sparc: Fix compiler errors (format strings)
[qemu.git] / block / vvfat.c
index 26dd474bb5bdf3f086948750b8d40284e4bf3f0a..fe568fe2c7548556a202cb33b7e0c1c4243396fa 100644 (file)
@@ -756,6 +756,7 @@ static int read_directory(BDRVVVFATState* s, int mapping_index)
         if (st.st_size > 0x7fffffff) {
            fprintf(stderr, "File %s is larger than 2GB\n", buffer);
            free(buffer);
+            closedir(dir);
            return -2;
         }
        direntry->size=cpu_to_le32(S_ISDIR(st.st_mode)?0:st.st_size);