Gedare Bloom started a new discussion on cpukit/libblock/src/flashdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_141072 > if (ret) > { > unlink (name); > - rtems_mutex_destroy (&fd->lock); > - free (fd->copy_buffer); > - free (fd->blocks); > - free (fd->devices); > + mutex_initialized = true; > + rtems_fdisk_cleanup(base_fd, minor, &mutex_initialized); > + free (base_fd); it seems like every time you call `rtems_fdisk_cleanup` you also `free(base_fd)`. Could that also be done in the cleanup function? -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_141072 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
