RTEMS | cpukit/libblock: Fix resource leak in rtems_fdisk_initialize (!903)
Gedare Bloom (@gedare)
gitlab at rtems.org
Tue Mar 3 16:56:08 UTC 2026
Gedare Bloom commented on a discussion on cpukit/libblock/src/flashdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/903#note_144173
> */
> fd->copy_buffer = malloc (c->block_size);
> if (!fd->copy_buffer)
> - return RTEMS_NO_MEMORY;
> + {
> + sc = RTEMS_NO_MEMORY;
> + goto error_cleanup;
I would prefer to see this done in a function.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/903#note_144173
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/20260303/7b6f50af/attachment.htm>
More information about the bugs
mailing list