Changeset c4c8efd in rtems


Ignore:
Timestamp:
Jan 19, 2010, 2:23:03 AM (11 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.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd22cd4a rc4c8efd  
     12010-01-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        Coverity Id 27
     4        * libblock/src/ramdisk-config.c: Coverity notes that the
     5        calloc() is a resource leak.  This is allocating memory for
     6        a RAM disk which will persist for the life of the system. RTEMS
     7        has no "de-initialize" driver call so there is no corresponding
     8        free(r).  Coverity is correct that it is never freed but this is
     9        not a problem.
     10
    1112010-01-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • cpukit/libblock/src/ramdisk-config.c

    rd22cd4a rc4c8efd  
    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.