Kinsey Moore started a new discussion on cpukit/libblock/src/flashdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_139248 > */ > 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; > + } This should be pulled into a function because it needs to be applied below as well. Also, fd->blocks needs to be freed in this loop. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_139248 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
