diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-04 14:40:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-04 14:40:51 +0000 |
commit | 7a09a7aedf24b804299714de7b4d432eead5ccb7 (patch) | |
tree | dcf700c3aec69b0ac582b50eca9c088e013bb34c /cpukit/libblock/src/ramdisk-config.c | |
parent | 2010-03-04 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-7a09a7aedf24b804299714de7b4d432eead5ccb7.tar.bz2 |
2010-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/ramdisk-config.c, sapi/include/confdefs.h:
CONFIGURE_DISABLE_CLASSIC_NOTEPADS is typo of
CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS. Fix it.
Diffstat (limited to 'cpukit/libblock/src/ramdisk-config.c')
-rw-r--r-- | cpukit/libblock/src/ramdisk-config.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libblock/src/ramdisk-config.c b/cpukit/libblock/src/ramdisk-config.c index 8ac513cdef..40d205f833 100644 --- a/cpukit/libblock/src/ramdisk-config.c +++ b/cpukit/libblock/src/ramdisk-config.c @@ -35,7 +35,7 @@ ramdisk_initialize( return rc; /* - * Coverity Id 27 notes that this calloc() is a resource leak. + * Coverity Id 27 & 31 note that this 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 @@ -82,5 +82,10 @@ ramdisk_initialize( r->initialized = false; } } + /* + * We need to tell Coverity that we know we are returning without + * freeing r. This looks suspiciously like a leak. :) + */ + /* coverity[leaked_storage : FALSE] */ return RTEMS_SUCCESSFUL; } |