mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-30 14:35:21 -04:00
[core] add listing exception for Apple SD card readers
* Also fix a Coverity warning
This commit is contained in:
parent
f02fbe3acc
commit
5dbf537dfb
4 changed files with 19 additions and 9 deletions
|
@ -1332,7 +1332,6 @@ BOOL DumpFatDir(const char* path, int32_t cluster)
|
|||
target = malloc(strlen(path) + safe_strlen(name) + 2);
|
||||
if ((name == NULL) || (target == NULL)) {
|
||||
uprintf("Could not allocate buffer");
|
||||
safe_free(name);
|
||||
goto out;
|
||||
}
|
||||
strcpy(target, path);
|
||||
|
@ -1400,6 +1399,8 @@ out:
|
|||
if (p_iso != NULL)
|
||||
iso9660_close(p_iso);
|
||||
}
|
||||
safe_free(name);
|
||||
safe_free(target);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue