Kinsey Moore started a new discussion on cpukit/libblock/src/flashdisk.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/903#note_138825

 >       * One copy buffer of a page size.
 >       */
 >      fd->copy_buffer = malloc (c->block_size);
 > -    if (!fd->copy_buffer)
 > +    if (!fd->copy_buffer) {
 > +      free (fds);

If this fails, it needs to go through the previous file descriptors that were 
already iterated over and release their memory in copy_buffer as well.

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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to