From 190899ee614605067233e16cc478b2b5f4833b6f Mon Sep 17 00:00:00 2001 From: Aaron Nyholm Date: Tue, 28 Oct 2025 14:26:45 +1100 Subject: [PATCH] bsps/shared/jffs2_flashdev.c: Fixed fatal heap error on failed mount Removed double free of mount_data and instance. Closes #5381 --- bsps/shared/dev/flash/jffs2_flashdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bsps/shared/dev/flash/jffs2_flashdev.c b/bsps/shared/dev/flash/jffs2_flashdev.c index f5a323c83e..3dbc31e78e 100644 --- a/bsps/shared/dev/flash/jffs2_flashdev.c +++ b/bsps/shared/dev/flash/jffs2_flashdev.c @@ -355,8 +355,6 @@ rtems_status_code jffs2_flashdev_mount( mount_data ); if ( status != 0 ) { - free(mount_data); - free(instance); return status; }