@@ -7283,11 +7283,11 @@ fs_mount(char* path, const char* device, const char* fsName, uint32 flags,
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
MemoryDeleter layerFSNameDeleter(layerFSName);
|
||||||
|
|
||||||
volume = (fs_volume*)malloc(sizeof(fs_volume));
|
volume = (fs_volume*)malloc(sizeof(fs_volume));
|
||||||
if (volume == NULL) {
|
if (volume == NULL) {
|
||||||
status = B_NO_MEMORY;
|
status = B_NO_MEMORY;
|
||||||
free(layerFSName);
|
|
||||||
goto err1;
|
goto err1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7304,7 +7304,6 @@ fs_mount(char* path, const char* device, const char* fsName, uint32 flags,
|
|||||||
volume->file_system_name = get_file_system_name(layerFSName);
|
volume->file_system_name = get_file_system_name(layerFSName);
|
||||||
if (volume->file_system_name == NULL) {
|
if (volume->file_system_name == NULL) {
|
||||||
status = B_NO_MEMORY;
|
status = B_NO_MEMORY;
|
||||||
free(layerFSName);
|
|
||||||
free(volume);
|
free(volume);
|
||||||
goto err1;
|
goto err1;
|
||||||
}
|
}
|
||||||
@@ -7312,7 +7311,6 @@ fs_mount(char* path, const char* device, const char* fsName, uint32 flags,
|
|||||||
volume->file_system = get_file_system(layerFSName);
|
volume->file_system = get_file_system(layerFSName);
|
||||||
if (volume->file_system == NULL) {
|
if (volume->file_system == NULL) {
|
||||||
status = B_DEVICE_NOT_FOUND;
|
status = B_DEVICE_NOT_FOUND;
|
||||||
free(layerFSName);
|
|
||||||
free(volume->file_system_name);
|
free(volume->file_system_name);
|
||||||
free(volume);
|
free(volume);
|
||||||
goto err1;
|
goto err1;
|
||||||
|
|||||||
Reference in New Issue
Block a user