RTEMS | flashdisk.c: Fixed garbage name generation and added memory cleanup (!912)

Prakhar Kumar (@prakhar) gitlab at rtems.org
Thu Jan 22 08:18:42 UTC 2026




Prakhar Kumar commented on a discussion on cpukit/libblock/src/flashdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_139477

 > +static void rtems_fdisk_cleanup_helper (rtems_flashdisk *fd)
 > +{
 > +  if(!fd)
 > +    return;
 > +
 > +  uint32_t device;
 > +
 > +  if(fd->devices)
 > +  {
 > +    for(device = 0; device< fd->device_count; device++)
 > +    {
 > +      free(fd->devices[device].segments);
 > +      fd->devices[device].segments = NULL;
 > +    }
 > +  }
 > +  free(fd->devices);

Done

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_139477
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260122/1b792088/attachment-0001.htm>


More information about the bugs mailing list