Prakhar Kumar commented on a discussion on cpukit/libblock/src/flashdisk.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_139546

 > +    return;
 > +
 > +  uint32_t device;
 > +
 > +  if(fd->devices)
 > +  {
 > +    for(device = 0; device< fd->device_count; device++)
 > +    {
 > +      free(fd->devices[device].segments);
 > +      fd->devices[device].segments = NULL;
 > +    }
 > +  }
 > +  free(fd->devices);
 > +  fd->devices = NULL;
 > +
 > +  free(fd->blocks);

Okay i will keep that in mind, I misunderstood what resolving thread meant.

So the function is only called after the fd is being allocated using calloc. So 
it NULL initializes it.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_139546
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