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:
Aaron Nyholm
2025-10-28 14:26:45 +11:00
parent 2cb47d2010
commit 190899ee61

View File

@@ -355,8 +355,6 @@ rtems_status_code jffs2_flashdev_mount(
mount_data
);
if ( status != 0 ) {
free(mount_data);
free(instance);
return status;
}