Changeset c4c8efd0 in rtems for cpukit/libblock


Ignore:
Timestamp:
01/19/10 02:23:03 (14 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
64734fc
Parents:
d22cd4a
Message:

2010-01-18 Joel Sherrill <joel.sherrill@…>

Coverity Id 27

  • libblock/src/ramdisk-config.c: Coverity notes that the calloc() is a resource leak. This is allocating memory for a RAM disk which will persist for the life of the system. RTEMS has no "de-initialize" driver call so there is no corresponding free(r). Coverity is correct that it is never freed but this is not a problem.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/ramdisk-config.c

    rd22cd4a rc4c8efd0  
    3535        return rc;
    3636
     37    /*
     38     * Coverity Id 27 notes that this calloc() is a resource leak.
     39     *
     40     * This is allocating memory for a RAM disk which will persist for
     41     * the life of the system. RTEMS has no "de-initialize" driver call
     42     * so there is no corresponding free(r).  Coverity is correct that
     43     * it is never freed but this is not a problem.
     44     */
    3745    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    3846    r->trace = false;
Note: See TracChangeset for help on using the changeset viewer.