mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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