RTEMS | flashdisk.c: Fixed garbage name generation and added memory cleanup (!912)
Prakhar Kumar (@prakhar)
gitlab at rtems.org
Wed Jan 21 21:09:59 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_139437
> */
> fd->copy_buffer = malloc (c->block_size);
> if (!fd->copy_buffer)
> + {
> + rtems_flashdisk *p = fd - 1;
> + while (p >= fd - minor)
> + {
> + free (p->copy_buffer);
> + p->copy_buffer = NULL;
> + --p;
> + }
@opticron please can you review the recent changes I made and provide a feedback.
Thankyou.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_139437
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/20260121/03d5c391/attachment-0001.htm>
More information about the bugs
mailing list