RTEMS | cpukit/libblock: Fix resource leak in rtems_nvdisk_initialize (CID 1439297) (!905)

MITHILESH MATTAPALLI (@mithileshm) gitlab at rtems.org
Fri Jan 16 05:16:34 UTC 2026




MITHILESH MATTAPALLI commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/905#note_138889


I have addressed the review feedback:

1. Memory Leak: Added a cleanup loop to free nvd-\>devices for all previously initialized disks if either calloc or rtems_blkdev_create fails.
2. Style: Aligned the nvd_start declaration to match the existing variables.
3. Formatting: Reverted the accidental whitespace change at the end of the file.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/905#note_138889
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/20260116/cd5e6cff/attachment.htm>


More information about the bugs mailing list