mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-16 04:18:59 +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
|
mount_data
|
||||||
);
|
);
|
||||||
if ( status != 0 ) {
|
if ( status != 0 ) {
|
||||||
free(mount_data);
|
|
||||||
free(instance);
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user