Gedare Bloom started a new discussion on cpukit/libblock/src/flashdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_147856 > + free( fd->devices ); > + fd->devices = NULL; > + } > + > + free( fd->blocks ); > + fd->blocks = NULL; > + > + free( fd->copy_buffer ); > + fd->copy_buffer = NULL; > +} > + > +static void rtems_fdisk_cleanup( rtems_flashdisk *base, uint32_t count ) > +{ > + rtems_flashdisk *base_fd = base; > + for( uint32_t i = count+1; i>0; i-- ) { > + rtems_fdisk_cleanup_helper( &base[i-1] ); I would probably just use `int i = count; i >= 0; i--` and `base[i]` -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_147856 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
