mirror of
https://github.com/openharmony/third_party_exfat-utils.git
synced 2026-07-01 22:34:00 -04:00
Free options strings on error.
Make clang static analyzer happy.
This commit is contained in:
@@ -565,6 +565,8 @@ int main(int argc, char* argv[])
|
||||
exfat_options = strdup("ro_fallback");
|
||||
if (fuse_options == NULL || exfat_options == NULL)
|
||||
{
|
||||
free(fuse_options);
|
||||
free(exfat_options);
|
||||
exfat_error("failed to allocate options string");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user