RTEMS | flashdisk.c: Fixed garbage name generation and added memory cleanup (!912)
Kinsey Moore (@opticron)
gitlab at rtems.org
Thu Jan 15 23:18:27 UTC 2026
Kinsey Moore started a new discussion on cpukit/libblock/src/flashdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_138829
> */
> fd->copy_buffer = malloc (c->block_size);
> if (!fd->copy_buffer)
> + {
> + free (bfd);
This would need to free copy_buffer allocated in previous iterations as well.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_138829
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/20260115/4cba1309/attachment.htm>
More information about the bugs
mailing list