forked from Imagelibrary/rtems
bsps/shared/jffs2_flashdev.c: Fixed fatal heap error on failed mount
Removed double free of mount_data and instance. Closes #5381
This commit is contained in:
@@ -355,8 +355,6 @@ rtems_status_code jffs2_flashdev_mount(
|
||||
mount_data
|
||||
);
|
||||
if ( status != 0 ) {
|
||||
free(mount_data);
|
||||
free(instance);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user